Merge "More theming fixes." into nyc-mr1-dev
Before Width: | Height: | Size: 147 B |
Before Width: | Height: | Size: 660 B |
Before Width: | Height: | Size: 585 B |
Before Width: | Height: | Size: 824 B |
Before Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 595 B |
Before Width: | Height: | Size: 553 B |
Before Width: | Height: | Size: 578 B |
Before Width: | Height: | Size: 115 B |
Before Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 655 B |
Before Width: | Height: | Size: 1000 B |
Before Width: | Height: | Size: 115 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 680 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB |
@@ -15,6 +15,13 @@
|
||||
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" />
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0"
|
||||
android:tint="?android:attr/colorAccent">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
|
||||
</vector>
|
||||
|
26
res/drawable/ic_menu_add_white.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016 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="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
|
||||
</vector>
|
@@ -89,6 +89,6 @@
|
||||
android:padding="8dip"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:src="@drawable/ic_bt_config" />
|
||||
android:src="@drawable/ic_settings" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -83,7 +83,7 @@
|
||||
android:layout_height="fill_parent"
|
||||
android:paddingStart="12dip"
|
||||
android:paddingEnd="12dp"
|
||||
android:src="@drawable/ic_sysbar_quicksettings"
|
||||
android:src="@drawable/ic_settings"
|
||||
android:contentDescription="@string/apps_with_restrictions_settings_button"
|
||||
android:layout_gravity="center"
|
||||
android:clickable="true"
|
||||
|
@@ -27,7 +27,7 @@
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="8dip"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:src="@drawable/ic_bt_config"
|
||||
android:src="@drawable/ic_settings"
|
||||
android:contentDescription="@string/bluetooth_device_details" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -41,7 +41,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:src="@drawable/ic_sysbar_quicksettings"
|
||||
android:src="@drawable/ic_settings"
|
||||
android:contentDescription="@string/tts_engine_settings_button"
|
||||
android:layout_centerVertical="true"
|
||||
android:clickable="true"
|
||||
|
@@ -27,7 +27,7 @@
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="8dip"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:src="@drawable/ic_sysbar_quicksettings"
|
||||
android:src="@drawable/ic_settings"
|
||||
android:contentDescription="@string/settings_button" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -35,7 +35,7 @@
|
||||
android:layout_height="fill_parent"
|
||||
android:paddingStart="16dip"
|
||||
android:paddingEnd="16dip"
|
||||
android:src="@drawable/ic_sysbar_quicksettings"
|
||||
android:src="@drawable/ic_settings"
|
||||
android:contentDescription="@string/settings_label"
|
||||
android:layout_gravity="center"
|
||||
android:background="?android:attr/selectableItemBackground" />
|
||||
|
@@ -37,7 +37,7 @@
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="8dip"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:src="@drawable/ic_bt_config"
|
||||
android:src="@drawable/ic_settings"
|
||||
android:contentDescription="@string/wifi_display_details" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -119,7 +119,6 @@
|
||||
|
||||
<color name="seek_bar_preference_preview_text">#fff</color>
|
||||
|
||||
<color name="importance_slider_color">@*android:color/material_deep_teal_500</color>
|
||||
<color name="importance_disabled_slider_color">@*android:color/material_grey_300</color>
|
||||
<color name="importance_secondary_slider_color">#858383</color>
|
||||
|
||||
|
@@ -18,7 +18,6 @@
|
||||
<attr name="fingerprint_layout_theme" format="reference" />
|
||||
<attr name="fingerprint_progress_bar_size" format="reference|dimension" />
|
||||
<attr name="fingerprint_ring_radius" format="reference|dimension" />
|
||||
<attr name="ic_menu_add" format="reference" />
|
||||
<attr name="ic_menu_moreoverflow" format="reference" />
|
||||
<attr name="ic_wps" format="reference" />
|
||||
<attr name="setup_divider_color" format="reference" />
|
||||
@@ -41,7 +40,6 @@
|
||||
<item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
|
||||
<item name="fingerprint_progress_bar_size">@dimen/setup_fingerprint_progress_bar_size</item>
|
||||
<item name="fingerprint_ring_radius">@dimen/setup_fingerprint_ring_radius</item>
|
||||
<item name="ic_menu_add">@drawable/ic_menu_add_dark</item>
|
||||
<item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
|
||||
<item name="ic_wps">@drawable/ic_wps_dark</item>
|
||||
<item name="setup_divider_color">@color/setup_divider_color_dark</item>
|
||||
@@ -66,7 +64,6 @@
|
||||
<item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
|
||||
<item name="fingerprint_progress_bar_size">@dimen/setup_fingerprint_progress_bar_size</item>
|
||||
<item name="fingerprint_ring_radius">@dimen/setup_fingerprint_ring_radius</item>
|
||||
<item name="ic_menu_add">@drawable/ic_menu_add_light</item>
|
||||
<item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
|
||||
<item name="ic_wps">@drawable/ic_wps_light</item>
|
||||
<item name="setup_divider_color">@color/setup_divider_color_light</item>
|
||||
@@ -149,7 +146,6 @@
|
||||
<item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
|
||||
<item name="fingerprint_progress_bar_size">@dimen/fingerprint_progress_bar_size</item>
|
||||
<item name="fingerprint_ring_radius">@dimen/fingerprint_ring_radius</item>
|
||||
<item name="ic_menu_add">@drawable/ic_menu_add_dark</item>
|
||||
<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>
|
||||
|
@@ -26,7 +26,7 @@
|
||||
<com.android.settings.DimmableIconPreference
|
||||
android:key="user_add"
|
||||
android:title="@string/user_add_user_or_profile_menu"
|
||||
android:icon="@drawable/ic_menu_add_dark" />
|
||||
android:icon="@drawable/ic_menu_add" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="lock_screen_settings"
|
||||
|
@@ -160,7 +160,7 @@ public class UserDictionarySettings extends ListFragment {
|
||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||
MenuItem actionItem =
|
||||
menu.add(0, OPTIONS_MENU_ADD, 0, R.string.user_dict_settings_add_menu_title)
|
||||
.setIcon(R.drawable.ic_menu_add_dark);
|
||||
.setIcon(R.drawable.ic_menu_add_white);
|
||||
actionItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM |
|
||||
MenuItem.SHOW_AS_ACTION_WITH_TEXT);
|
||||
}
|
||||
|
@@ -350,7 +350,7 @@ public class AccountSettings extends SettingsPreferenceFragment
|
||||
private Preference newManagedProfileSettings() {
|
||||
Preference preference = new Preference(getPrefContext());
|
||||
preference.setTitle(R.string.managed_profile_settings_title);
|
||||
preference.setIcon(R.drawable.ic_sysbar_quicksettings);
|
||||
preference.setIcon(R.drawable.ic_settings);
|
||||
preference.setOnPreferenceClickListener(this);
|
||||
preference.setOrder(ORDER_NEXT_TO_LAST);
|
||||
return preference;
|
||||
|
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.settings.notification;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.util.TypedValue;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SeekBarPreference;
|
||||
|
||||
@@ -52,8 +54,10 @@ public class ImportanceSeekBarPreference extends SeekBarPreference implements
|
||||
int defStyleRes) {
|
||||
super(context, attrs, defStyleAttr, defStyleRes);
|
||||
setLayoutResource(R.layout.preference_importance_slider);
|
||||
mActiveSliderTint = ColorStateList.valueOf(
|
||||
context.getColor(R.color.importance_slider_color));
|
||||
Resources.Theme theme = context.getTheme();
|
||||
TypedValue typedValue = new TypedValue();
|
||||
theme.resolveAttribute(android.R.attr.colorAccent, typedValue, true);
|
||||
mActiveSliderTint = ColorStateList.valueOf(context.getColor(typedValue.resourceId));
|
||||
mInactiveSliderTint = ColorStateList.valueOf(
|
||||
context.getColor(R.color.importance_disabled_slider_color));
|
||||
mHandler = new Handler();
|
||||
|