From 24dca2250154a7fac2f7d6b5b14fc6957ac8f92f Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Fri, 21 Jan 2011 16:16:28 -0800 Subject: 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 --- .../res/drawable-hdpi/cab_background_dark.9.png | Bin 0 -> 5015 bytes .../res/drawable-hdpi/cab_background_light.9.png | Bin 0 -> 6044 bytes .../cab_background_opaque_holo_dark.9.png | Bin 5015 -> 0 bytes .../cab_background_opaque_holo_light.9.png | Bin 6044 -> 0 bytes .../res/drawable-mdpi/cab_background_dark.9.png | Bin 0 -> 2876 bytes .../res/drawable-mdpi/cab_background_light.9.png | Bin 0 -> 3428 bytes .../cab_background_opaque_holo_dark.9.png | Bin 2876 -> 0 bytes .../cab_background_opaque_holo_light.9.png | Bin 3428 -> 0 bytes .../res/drawable/action_bar_context_background.xml | 23 --------------------- core/res/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 +++- 14 files changed, 12 insertions(+), 35 deletions(-) create mode 100644 core/res/res/drawable-hdpi/cab_background_dark.9.png create mode 100644 core/res/res/drawable-hdpi/cab_background_light.9.png delete mode 100644 core/res/res/drawable-hdpi/cab_background_opaque_holo_dark.9.png delete mode 100644 core/res/res/drawable-hdpi/cab_background_opaque_holo_light.9.png create mode 100644 core/res/res/drawable-mdpi/cab_background_dark.9.png create mode 100644 core/res/res/drawable-mdpi/cab_background_light.9.png delete mode 100644 core/res/res/drawable-mdpi/cab_background_opaque_holo_dark.9.png delete mode 100644 core/res/res/drawable-mdpi/cab_background_opaque_holo_light.9.png delete mode 100644 core/res/res/drawable/action_bar_context_background.xml (limited to 'core') diff --git a/core/res/res/drawable-hdpi/cab_background_dark.9.png b/core/res/res/drawable-hdpi/cab_background_dark.9.png new file mode 100644 index 0000000..bc5db49 Binary files /dev/null and b/core/res/res/drawable-hdpi/cab_background_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/cab_background_light.9.png b/core/res/res/drawable-hdpi/cab_background_light.9.png new file mode 100644 index 0000000..1f45bc9 Binary files /dev/null and b/core/res/res/drawable-hdpi/cab_background_light.9.png differ diff --git a/core/res/res/drawable-hdpi/cab_background_opaque_holo_dark.9.png b/core/res/res/drawable-hdpi/cab_background_opaque_holo_dark.9.png deleted file mode 100644 index bc5db49..0000000 Binary files a/core/res/res/drawable-hdpi/cab_background_opaque_holo_dark.9.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/cab_background_opaque_holo_light.9.png b/core/res/res/drawable-hdpi/cab_background_opaque_holo_light.9.png deleted file mode 100644 index 1f45bc9..0000000 Binary files a/core/res/res/drawable-hdpi/cab_background_opaque_holo_light.9.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/cab_background_dark.9.png b/core/res/res/drawable-mdpi/cab_background_dark.9.png new file mode 100644 index 0000000..253b12c Binary files /dev/null and b/core/res/res/drawable-mdpi/cab_background_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/cab_background_light.9.png b/core/res/res/drawable-mdpi/cab_background_light.9.png new file mode 100644 index 0000000..aaccdfb Binary files /dev/null and b/core/res/res/drawable-mdpi/cab_background_light.9.png differ diff --git a/core/res/res/drawable-mdpi/cab_background_opaque_holo_dark.9.png b/core/res/res/drawable-mdpi/cab_background_opaque_holo_dark.9.png deleted file mode 100644 index 253b12c..0000000 Binary files a/core/res/res/drawable-mdpi/cab_background_opaque_holo_dark.9.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/cab_background_opaque_holo_light.9.png b/core/res/res/drawable-mdpi/cab_background_opaque_holo_light.9.png deleted file mode 100644 index aaccdfb..0000000 Binary files a/core/res/res/drawable-mdpi/cab_background_opaque_holo_light.9.png and /dev/null differ 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 8789898..0000000 --- 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 e001894..4477df7 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 ccc6326..9cf08ea 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 4d7e2ce..0f4924e 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -1065,19 +1065,20 @@