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

Unified Diff: chrome/android/java/res/drawable/switch_thumb.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
Index: chrome/android/java/res/drawable/switch_thumb.xml
diff --git a/chrome/android/java/res/drawable/switch_thumb.xml b/chrome/android/java/res/drawable/switch_thumb.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2e2ac6b55ec062f80667b30e02004583a4dfe99d
--- /dev/null
+++ b/chrome/android/java/res/drawable/switch_thumb.xml
@@ -0,0 +1,12 @@
+<?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_checked="true" android:drawable="@drawable/btn_switch_to_on_mtrl_00012" />
+ <item android:drawable="@drawable/btn_switch_to_on_mtrl_00001" />
+</selector>

Powered by Google App Engine
This is Rietveld 408576698