From 6a750eb82c411a7fca87a45b187d7814e77b3db4 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 15 Apr 2014 18:58:07 -0700 Subject: Stylizing action bar tabs to QP green-ish theme. - Changed colors, sizes to reflect specified restyling. - Changed drawing of colored rectangles into drawable colors. - Cleared/removed unused underlines/styles/drawables. - Added tab_text_color resource for selected/not text styling. - Changed action_bar_tab to be more specific in its provision of drawables so that drawable styling is less order dependent. Bug: 14012803 Change-Id: I86a712fd05a5e7cbec12d4979a59dd67788439ea --- res/color/tab_text_color.xml | 21 ++++++++++++++++++ res/drawable/action_bar_tab.xml | 24 +++++++++++++++----- res/drawable/tab_selected.xml | 24 ++++---------------- res/drawable/tab_selected_focused.xml | 24 ++++---------------- res/drawable/tab_selected_pressed.xml | 39 --------------------------------- res/drawable/tab_unselected.xml | 33 ---------------------------- res/drawable/tab_unselected_focused.xml | 15 +------------ res/drawable/tab_unselected_pressed.xml | 33 ---------------------------- res/values/colors.xml | 29 ++++++------------------ res/values/dimens.xml | 8 ++----- res/values/styles.xml | 7 ++---- 11 files changed, 59 insertions(+), 198 deletions(-) create mode 100644 res/color/tab_text_color.xml delete mode 100644 res/drawable/tab_selected_pressed.xml delete mode 100644 res/drawable/tab_unselected.xml delete mode 100644 res/drawable/tab_unselected_pressed.xml (limited to 'res') diff --git a/res/color/tab_text_color.xml b/res/color/tab_text_color.xml new file mode 100644 index 000000000..629341e03 --- /dev/null +++ b/res/color/tab_text_color.xml @@ -0,0 +1,21 @@ + + + + + + + \ No newline at end of file diff --git a/res/drawable/action_bar_tab.xml b/res/drawable/action_bar_tab.xml index 3f31dbae1..fe961f72e 100644 --- a/res/drawable/action_bar_tab.xml +++ b/res/drawable/action_bar_tab.xml @@ -16,10 +16,22 @@ --> - - - - - - + + + + + + \ No newline at end of file diff --git a/res/drawable/tab_selected.xml b/res/drawable/tab_selected.xml index 821f0473f..78f1eda67 100644 --- a/res/drawable/tab_selected.xml +++ b/res/drawable/tab_selected.xml @@ -15,25 +15,9 @@ limitations under the License. --> - - - - - - - - - - - - + + - - - - - + \ No newline at end of file diff --git a/res/drawable/tab_selected_focused.xml b/res/drawable/tab_selected_focused.xml index 7c0d35f83..591045d34 100644 --- a/res/drawable/tab_selected_focused.xml +++ b/res/drawable/tab_selected_focused.xml @@ -15,27 +15,11 @@ limitations under the License. --> - - - - - - - - - - - - + + - - - - - + - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/drawable/tab_unselected.xml b/res/drawable/tab_unselected.xml deleted file mode 100644 index 3eee4876e..000000000 --- a/res/drawable/tab_unselected.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/drawable/tab_unselected_focused.xml b/res/drawable/tab_unselected_focused.xml index c85473959..c32e2c534 100644 --- a/res/drawable/tab_unselected_focused.xml +++ b/res/drawable/tab_unselected_focused.xml @@ -15,21 +15,8 @@ limitations under the License. --> - - - - - - - - - - - + - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/values/colors.xml b/res/values/colors.xml index c842e22b2..cbd116db6 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -57,9 +57,9 @@ #ebebeb - - #00AFCC + #00afcc #d0d0d0 @@ -101,29 +101,14 @@ #ffffff - - #d3d3d3 + + #00afcc - - #ebebeb - - - #c4c4c4 - - - #dedede - - - #3265c1 - - - #c8c8c8 + + #008698 - #3b77e7 - - - #505050 + #008698 #16000000 diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 9490d8da5..c8dfecc78 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -122,12 +122,8 @@ 37dp - - 2dp - 7.7dp - - 12dp + 3dp - 12sp + 13sp diff --git a/res/values/styles.xml b/res/values/styles.xml index 3d3a43190..c0f296d84 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -168,14 +168,11 @@ - -- cgit v1.2.3