Refactor Settings theme colors.

Introduces stock colors (primary_color, primary_dark_color, etc) to allow
overriding the colors via resource overlays.

Creates new colorSecondary attribute and updates switches to use theme
attributes for foreground/background colors rather than hardcoded values.

Some other mild color cleanup to make things more straightforward.

BUG: 28760785
Change-Id: I4deba962357217bdb2e08c08e8f83b9b57a683d4
This commit is contained in:
Andrew Sapperstein
2016-05-16 17:27:12 -07:00
parent 3b15d6234d
commit 8dd11327b6
5 changed files with 22 additions and 18 deletions

View File

@@ -16,6 +16,6 @@
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:attr/colorControlHighlight">
<item android:drawable="@color/switchbar_background_color" />
<item android:drawable="?attr/colorSecondary" />
</ripple>