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

@@ -44,7 +44,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@null"
android:theme="@style/ThemeOverlay.SwitchBar" />
android:theme="@style/ThemeOverlay.SwitchBar.Settings" />
</merge>