Fix some dark theme issues (Take 2)
Now with visible lock patterns! Both light and dark! Bug: 21117509 Bug: 21077345 Bug: 21480587 Bug: 21621900 Change-Id: Ibcf822faf7cbc83be43d757e0a6a9432ef3346af
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 244 B |
Binary file not shown.
Before Width: | Height: | Size: 162 B |
Binary file not shown.
Before Width: | Height: | Size: 208 B |
Binary file not shown.
Before Width: | Height: | Size: 294 B |
Binary file not shown.
Before Width: | Height: | Size: 319 B |
20
res/drawable/ic_menu_add.xml
Normal file
20
res/drawable/ic_menu_add.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/ic_menu_add_white"
|
||||
android:tint="?android:attr/colorAccent" />
|
25
res/drawable/ic_menu_delete.xml
Normal file
25
res/drawable/ic_menu_delete.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<!--
|
||||
Copyright (C) 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24.0dp"
|
||||
android:height="24.0dp"
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0"
|
||||
android:tint="?android:attr/colorAccent">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M12.0,38.0c0.0,2.21 1.79,4.0 4.0,4.0l16.0,0.0c2.21,0.0 4.0,-1.79 4.0,-4.0L36.0,14.0L12.0,14.0l0.0,24.0zM38.0,8.0l-7.0,0.0l-2.0,-2.0L19.0,6.0l-2.0,2.0l-7.0,0.0l0.0,4.0l28.0,0.0L38.0,8.0z"/>
|
||||
</vector>
|
@@ -43,7 +43,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start|bottom"
|
||||
settings:strokeColor="#00000000"
|
||||
settings:fillColor="#ff009688"
|
||||
settings:fillColor="?android:attr/colorAccent"
|
||||
settings:fillColorSecondary="#ff80cbc4"
|
||||
settings:safeRegion="3dp" />
|
||||
|
||||
@@ -53,8 +53,8 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start|bottom"
|
||||
settings:strokeColor="#00000000"
|
||||
settings:fillColor="#ff009688"
|
||||
settings:fillColorSecondary="#ff009688"
|
||||
settings:fillColor="?android:attr/colorAccent"
|
||||
settings:fillColorSecondary="?android:attr/colorAccent"
|
||||
settings:safeRegion="3dp" />
|
||||
|
||||
<com.android.settings.widget.ChartSweepView
|
||||
@@ -67,7 +67,7 @@
|
||||
settings:neighborMargin="5dip"
|
||||
settings:labelSize="60dip"
|
||||
settings:labelTemplate="@string/data_usage_sweep_warning"
|
||||
settings:labelColor="#ff37474f"
|
||||
settings:labelColor="?android:attr/textColorSecondary"
|
||||
settings:safeRegion="4dp" />
|
||||
|
||||
<com.android.settings.widget.ChartSweepView
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="card_background">#ff424242</color>
|
||||
<color name="lock_pattern_view_regular_color">@*android:color/secondary_text_default_material_dark</color>
|
||||
|
||||
</resources>
|
@@ -59,12 +59,11 @@
|
||||
<color name="unlock_pattern_view_regular_color">@android:color/white</color>
|
||||
<color name="unlock_pattern_view_error_color">#fff4511e</color>
|
||||
|
||||
<color name="fingerprint_title_area_bg">#ff009688</color>
|
||||
<color name="fingerprint_title_area_bg">?android:attr/colorAccent</color>
|
||||
<color name="fingerprint_title_color">#ffffffff</color>
|
||||
<color name="fingerprint_message_color">#de000000</color>
|
||||
<color name="fingerprint_progress_ring">#ff009688</color>
|
||||
<color name="fingerprint_progress_ring">?android:attr/colorAccent</color>
|
||||
<color name="fingerprint_progress_ring_bg">#20000000</color>
|
||||
<color name="fingerprint_dot_color">#ff009688</color>
|
||||
|
||||
<color name="running_processes_system_ram">#ff384248</color>
|
||||
<color name="running_processes_apps_ram">#ff009587</color>
|
||||
@@ -76,13 +75,12 @@
|
||||
<color name="switch_accent_color">#ff7fcac3</color>
|
||||
|
||||
<color name="wifi_divider">#ffe0e0e0</color>
|
||||
<color name="wifi_signal_icon_color">#ff009688</color>
|
||||
<color name="sim_noitification">@*android:color/material_deep_teal_500</color>
|
||||
|
||||
<color name="warning">#ff5621</color>
|
||||
<color name="confirm_device_credential_dark_background">#263238</color>
|
||||
<color name="fab_ripple">#1fffffff</color><!-- 12% white -->
|
||||
<color name="fab_shape">#ff009688</color><!-- Teal 500 -->
|
||||
<color name="fab_shape">?android:attr/colorAccent</color>
|
||||
<color name="voice_interaction_highlight">#33b5e5</color>
|
||||
|
||||
<drawable name="fp_enrollment_header_landscape">#009688</drawable>
|
||||
|
@@ -93,7 +93,7 @@
|
||||
<item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_holo_dark</item>
|
||||
<item name="ic_wps">@drawable/ic_wps_light</item>
|
||||
<item name="wifi_signal">@drawable/wifi_signal</item>
|
||||
<item name="wifi_signal_color">@color/wifi_signal_icon_color</item>
|
||||
<item name="wifi_signal_color">?android:attr/colorAccent</item>
|
||||
<item name="side_margin">@dimen/settings_side_margin</item>
|
||||
|
||||
<!-- Redefine the ActionBar style for contentInsetStart -->
|
||||
|
@@ -114,7 +114,8 @@ public class AccountPreference extends Preference {
|
||||
int res;
|
||||
switch (status) {
|
||||
case SYNC_ENABLED:
|
||||
res = R.drawable.ic_sync_green_holo;
|
||||
case SYNC_IN_PROGRESS:
|
||||
res = R.drawable.ic_settings_sync;
|
||||
break;
|
||||
case SYNC_DISABLED:
|
||||
res = R.drawable.ic_sync_grey_holo;
|
||||
@@ -122,9 +123,6 @@ public class AccountPreference extends Preference {
|
||||
case SYNC_ERROR:
|
||||
res = R.drawable.ic_sync_red_holo;
|
||||
break;
|
||||
case SYNC_IN_PROGRESS:
|
||||
res = R.drawable.ic_sync_green_holo;
|
||||
break;
|
||||
default:
|
||||
res = R.drawable.ic_sync_red_holo;
|
||||
Log.e(TAG, "Unknown sync status: " + status);
|
||||
|
@@ -296,7 +296,7 @@ public class AccountSettings extends SettingsPreferenceFragment
|
||||
private Preference newAddAccountPreference(Context context) {
|
||||
Preference preference = new Preference(context);
|
||||
preference.setTitle(R.string.add_account_label);
|
||||
preference.setIcon(R.drawable.ic_menu_add_dark);
|
||||
preference.setIcon(R.drawable.ic_menu_add);
|
||||
preference.setOnPreferenceClickListener(this);
|
||||
preference.setOrder(ORDER_NEXT_TO_LAST);
|
||||
return preference;
|
||||
|
@@ -24,6 +24,7 @@ import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.view.animation.AnimationUtils;
|
||||
import android.view.animation.Interpolator;
|
||||
@@ -59,7 +60,9 @@ public class FingerprintLocationAnimationView extends View {
|
||||
R.fraction.fingerprint_sensor_location_fraction_x, 1, 1);
|
||||
mFractionCenterY = getResources().getFraction(
|
||||
R.fraction.fingerprint_sensor_location_fraction_y, 1, 1);
|
||||
int color = getResources().getColor(R.color.fingerprint_dot_color, null);
|
||||
TypedValue typedValue = new TypedValue();
|
||||
context.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true);
|
||||
int color = getResources().getColor(typedValue.resourceId, null);
|
||||
mDotPaint.setAntiAlias(true);
|
||||
mPulsePaint.setAntiAlias(true);
|
||||
mDotPaint.setColor(color);
|
||||
|
@@ -123,14 +123,15 @@ public class ChartSweepView extends View {
|
||||
final TypedArray a = context.obtainStyledAttributes(
|
||||
attrs, R.styleable.ChartSweepView, defStyle, 0);
|
||||
|
||||
setSweepDrawable(a.getDrawable(R.styleable.ChartSweepView_sweepDrawable));
|
||||
final int color = a.getColor(R.styleable.ChartSweepView_labelColor, Color.BLUE);
|
||||
setSweepDrawable(a.getDrawable(R.styleable.ChartSweepView_sweepDrawable), color);
|
||||
setFollowAxis(a.getInt(R.styleable.ChartSweepView_followAxis, -1));
|
||||
setNeighborMargin(a.getDimensionPixelSize(R.styleable.ChartSweepView_neighborMargin, 0));
|
||||
setSafeRegion(a.getDimensionPixelSize(R.styleable.ChartSweepView_safeRegion, 0));
|
||||
|
||||
setLabelMinSize(a.getDimensionPixelSize(R.styleable.ChartSweepView_labelSize, 0));
|
||||
setLabelTemplate(a.getResourceId(R.styleable.ChartSweepView_labelTemplate, 0));
|
||||
setLabelColor(a.getColor(R.styleable.ChartSweepView_labelColor, Color.BLUE));
|
||||
setLabelColor(color);
|
||||
|
||||
// TODO: moved focused state directly into assets
|
||||
setBackgroundResource(R.drawable.data_usage_sweep_background);
|
||||
@@ -213,7 +214,7 @@ public class ChartSweepView extends View {
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
public void setSweepDrawable(Drawable sweep) {
|
||||
public void setSweepDrawable(Drawable sweep, int color) {
|
||||
if (mSweep != null) {
|
||||
mSweep.setCallback(null);
|
||||
unscheduleDrawable(mSweep);
|
||||
@@ -226,6 +227,8 @@ public class ChartSweepView extends View {
|
||||
}
|
||||
sweep.setVisible(getVisibility() == VISIBLE, false);
|
||||
mSweep = sweep;
|
||||
// Match the text.
|
||||
mSweep.setTint(color);
|
||||
sweep.getPadding(mSweepPadding);
|
||||
} else {
|
||||
mSweep = null;
|
||||
|
Reference in New Issue
Block a user