From 24dca2250154a7fac2f7d6b5b14fc6957ac8f92f Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Fri, 21 Jan 2011 16:16:28 -0800 Subject: [PATCH] Fixed CAB background and selection color for legacy applications. Also fixed Title/subtitle and menu item button's text colors. Bug 3378113 Change-Id: Id43cac14dcce40b4f49105e7e524f15b75a6b938 --- ...o_dark.9.png => cab_background_dark.9.png} | Bin ...light.9.png => cab_background_light.9.png} | Bin ...o_dark.9.png => cab_background_dark.9.png} | Bin ...light.9.png => cab_background_light.9.png} | Bin .../action_bar_context_background.xml | 23 ------------------ .../res/layout/action_menu_item_layout.xml | 1 + core/res/res/layout/search_bar.xml | 2 +- core/res/res/values/colors.xml | 4 +-- core/res/res/values/styles.xml | 13 ++++------ core/res/res/values/themes.xml | 4 ++- 10 files changed, 12 insertions(+), 35 deletions(-) rename core/res/res/drawable-hdpi/{cab_background_opaque_holo_dark.9.png => cab_background_dark.9.png} (100%) rename core/res/res/drawable-hdpi/{cab_background_opaque_holo_light.9.png => cab_background_light.9.png} (100%) rename core/res/res/drawable-mdpi/{cab_background_opaque_holo_dark.9.png => cab_background_dark.9.png} (100%) rename core/res/res/drawable-mdpi/{cab_background_opaque_holo_light.9.png => cab_background_light.9.png} (100%) delete mode 100644 core/res/res/drawable/action_bar_context_background.xml diff --git a/core/res/res/drawable-hdpi/cab_background_opaque_holo_dark.9.png b/core/res/res/drawable-hdpi/cab_background_dark.9.png similarity index 100% rename from core/res/res/drawable-hdpi/cab_background_opaque_holo_dark.9.png rename to core/res/res/drawable-hdpi/cab_background_dark.9.png diff --git a/core/res/res/drawable-hdpi/cab_background_opaque_holo_light.9.png b/core/res/res/drawable-hdpi/cab_background_light.9.png similarity index 100% rename from core/res/res/drawable-hdpi/cab_background_opaque_holo_light.9.png rename to core/res/res/drawable-hdpi/cab_background_light.9.png diff --git a/core/res/res/drawable-mdpi/cab_background_opaque_holo_dark.9.png b/core/res/res/drawable-mdpi/cab_background_dark.9.png similarity index 100% rename from core/res/res/drawable-mdpi/cab_background_opaque_holo_dark.9.png rename to core/res/res/drawable-mdpi/cab_background_dark.9.png diff --git a/core/res/res/drawable-mdpi/cab_background_opaque_holo_light.9.png b/core/res/res/drawable-mdpi/cab_background_light.9.png similarity index 100% rename from core/res/res/drawable-mdpi/cab_background_opaque_holo_light.9.png rename to core/res/res/drawable-mdpi/cab_background_light.9.png diff --git a/core/res/res/drawable/action_bar_context_background.xml b/core/res/res/drawable/action_bar_context_background.xml deleted file mode 100644 index 8789898186ec0..0000000000000 --- a/core/res/res/drawable/action_bar_context_background.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - diff --git a/core/res/res/layout/action_menu_item_layout.xml b/core/res/res/layout/action_menu_item_layout.xml index e0018945d7b4f..4477df7aaf3e1 100644 --- a/core/res/res/layout/action_menu_item_layout.xml +++ b/core/res/res/layout/action_menu_item_layout.xml @@ -42,6 +42,7 @@ android:visibility="gone" android:textAppearance="?attr/textAppearanceMedium" style="?attr/buttonStyleSmall" + android:textColor="?attr/textColorPrimary" android:background="@null" android:paddingLeft="4dip" android:paddingRight="4dip" /> diff --git a/core/res/res/layout/search_bar.xml b/core/res/res/layout/search_bar.xml index ccc6326630a65..9cf08eaf96995 100644 --- a/core/res/res/layout/search_bar.xml +++ b/core/res/res/layout/search_bar.xml @@ -25,7 +25,7 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:focusable="true" - android:background="@drawable/cab_background_opaque_holo_light" + android:background="@drawable/cab_background_light" android:descendantFocusability="afterDescendants"> #808080 #cc475925 #ccd2e461 - #cc475925 - #ccd2e461 + #9983CC39 + #9983CC39 #5c5cff #0000ee diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index 4d7e2ce153d71..0f4924e860e28 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -1065,19 +1065,20 @@