From 250ebb8c814ea5c8818d12afc25194091694a5b1 Mon Sep 17 00:00:00 2001 From: Bryan Owens Date: Sun, 17 Jan 2016 02:15:52 -0600 Subject: Themes: Expose hard coded colors and styles from layouts Change-Id: I815dc35d65110ac091e73cc3dd9b1a16fe69b929 Signed-off-by: Bryan Owens --- res/layout-sw600dp/snapshot_item.xml | 6 +++--- res/layout-sw600dp/suggestion_item.xml | 8 ++++---- res/layout-sw600dp/title_bar_autologin.xml | 10 +++++----- res/layout/anim_screen.xml | 2 +- res/layout/bookmark_sync_wizard.xml | 6 +++--- res/layout/bookmark_thumbnail.xml | 2 +- res/layout/bookmarkthumbnailwidget_item.xml | 2 +- res/layout/bookmarkthumbnailwidget_item_folder.xml | 2 +- res/layout/nav_screen.xml | 2 +- res/layout/preference_list_content.xml | 2 +- res/layout/qc_tab.xml | 4 ++-- res/layout/snapshot_item.xml | 4 ++-- res/layout/title_bar_autologin.xml | 12 ++++++------ res/values/cm_colors.xml | 22 ++++++++++++++++++++++ res/values/cm_styles.xml | 22 ++++++++++++++++++++++ 15 files changed, 75 insertions(+), 31 deletions(-) create mode 100644 res/values/cm_styles.xml diff --git a/res/layout-sw600dp/snapshot_item.xml b/res/layout-sw600dp/snapshot_item.xml index 2fc6ca8..2258b17 100644 --- a/res/layout-sw600dp/snapshot_item.xml +++ b/res/layout-sw600dp/snapshot_item.xml @@ -39,7 +39,7 @@ android:ellipsize="end" android:textSize="12sp" android:typeface="sans" - android:textColor="@android:color/white" + android:textColor="@color/snapshot_item_text_color" android:paddingLeft="6dip" android:paddingRight="2dip" android:gravity="center_vertical" /> @@ -62,7 +62,7 @@ android:gravity="center_vertical" android:typeface="sans" android:textSize="14sp" - android:textColor="#AAAAAA" /> + android:textColor="@color/snapshot_item_date_text_color" /> + android:textColor="@color/snapshot_item_title_text_color" /> diff --git a/res/layout-sw600dp/suggestion_item.xml b/res/layout-sw600dp/suggestion_item.xml index b106ae6..5dbe91e 100644 --- a/res/layout-sw600dp/suggestion_item.xml +++ b/res/layout-sw600dp/suggestion_item.xml @@ -51,16 +51,16 @@ android:id="@android:id/text1" style="@style/SuggestionLineMedium" android:maxLines="1" - android:textColor="@color/black" - android:textColorHint="@color/black" + android:textColor="@color/suggestion_item_text_color" + android:textColorHint="@color/suggestion_item_hint_text_color" android:layout_width="match_parent" android:layout_height="wrap_content" /> diff --git a/res/layout-sw600dp/title_bar_autologin.xml b/res/layout-sw600dp/title_bar_autologin.xml index 1065756..c656154 100644 --- a/res/layout-sw600dp/title_bar_autologin.xml +++ b/res/layout-sw600dp/title_bar_autologin.xml @@ -18,14 +18,14 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="#FBF0A0" + android:background="@color/title_bar_autologin_background" android:gravity="center_vertical" android:visibility="gone"> @@ -33,11 +33,11 @@ android:id="@+id/autologin_account" android:layout_height="wrap_content" android:layout_width="wrap_content" - style="@android:style/Widget.Holo.Light.Spinner" /> + style="@style/LoginSpinnerTheme" />