Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1487)

Unified Diff: chrome/android/java/res/color/switch_thumb_tint.xml

Issue 912533003: Fix ChromeSwitchCompat thumb drawable and tint color (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from newt's review Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/res/drawable-hdpi/btn_switch_to_on_mtrl_00001.9.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/color/switch_thumb_tint.xml
diff --git a/chrome/android/java/res/color/switch_thumb_tint.xml b/chrome/android/java/res/color/switch_thumb_tint.xml
new file mode 100644
index 0000000000000000000000000000000000000000..df2d56e124c9e9216cbef387d8999e547d231bb9
--- /dev/null
+++ b/chrome/android/java/res/color/switch_thumb_tint.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2015 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file. -->
+
+<!-- TODO(twellington): remove after support library is rolled to pick up their fix for
+ the thumb drawable not always being visible (crbug.com/440601). -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_enabled="true" android:state_checked="true"
+ android:color="@color/pref_accent_color" />
+ <item android:state_enabled="true" android:state_checked="false"
+ android:color="#ececec" />
+ <item android:color="#b9b9b9" />
+</selector>
« no previous file with comments | « no previous file | chrome/android/java/res/drawable-hdpi/btn_switch_to_on_mtrl_00001.9.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698