From 0a1c6f021be032f5aecb341c2794efb06c0a8a0d Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Wed, 21 May 2014 18:10:53 -0700 Subject: [PATCH] Style and asset cleanup Updates button drawable and colors, cleans up Quantum styles, updates highlight attribute name and color, fixes popup backgrounds. Also fixes GradientDrawable opacity check. Change-Id: I75dd35e815a8a33ec9f0b16e881e774edfb8c092 --- api/current.txt | 2 +- .../res/color/btn_default_quantum_dark.xml | 20 +++++++ .../res/color/btn_default_quantum_light.xml | 20 +++++++ .../res/drawable/btn_borderless_quantum.xml | 21 ++++++- .../res/res/drawable/btn_cab_done_quantum.xml | 4 +- core/res/res/drawable/btn_default_quantum.xml | 30 +++++----- .../res/drawable/item_background_quantum.xml | 2 +- .../res/drawable/list_selector_quantum.xml | 2 +- core/res/res/values/attrs.xml | 6 +- core/res/res/values/public.xml | 2 +- core/res/res/values/styles_quantum.xml | 57 +++++-------------- core/res/res/values/themes.xml | 8 +-- core/res/res/values/themes_quantum.xml | 12 ++-- .../graphics/drawable/GradientDrawable.java | 3 +- 14 files changed, 110 insertions(+), 79 deletions(-) create mode 100644 core/res/res/color/btn_default_quantum_dark.xml create mode 100644 core/res/res/color/btn_default_quantum_light.xml diff --git a/api/current.txt b/api/current.txt index b2fe641397cbd..9ab835b3ece67 100644 --- a/api/current.txt +++ b/api/current.txt @@ -390,8 +390,8 @@ package android { field public static final int colorBackground = 16842801; // 0x1010031 field public static final int colorBackgroundCacheHint = 16843435; // 0x10102ab field public static final int colorButtonNormal = 16843822; // 0x101042e - field public static final int colorButtonPressed = 16843823; // 0x101042f field public static final int colorControlActivated = 16843821; // 0x101042d + field public static final int colorControlHighlight = 16843823; // 0x101042f field public static final int colorControlNormal = 16843820; // 0x101042c field public static final int colorFocusedHighlight = 16843663; // 0x101038f field public static final int colorForeground = 16842800; // 0x1010030 diff --git a/core/res/res/color/btn_default_quantum_dark.xml b/core/res/res/color/btn_default_quantum_dark.xml new file mode 100644 index 0000000000000..f2e772dd252af --- /dev/null +++ b/core/res/res/color/btn_default_quantum_dark.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/core/res/res/color/btn_default_quantum_light.xml b/core/res/res/color/btn_default_quantum_light.xml new file mode 100644 index 0000000000000..de1bd2c6bea0f --- /dev/null +++ b/core/res/res/color/btn_default_quantum_light.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/core/res/res/drawable/btn_borderless_quantum.xml b/core/res/res/drawable/btn_borderless_quantum.xml index eaf2550b1379f..a8def446dc58e 100644 --- a/core/res/res/drawable/btn_borderless_quantum.xml +++ b/core/res/res/drawable/btn_borderless_quantum.xml @@ -15,7 +15,22 @@ --> - + android:tint="?attr/colorControlHighlight"> + + + + + + + + + diff --git a/core/res/res/drawable/btn_cab_done_quantum.xml b/core/res/res/drawable/btn_cab_done_quantum.xml index c03ab0aa81e44..51e06bbe98640 100644 --- a/core/res/res/drawable/btn_cab_done_quantum.xml +++ b/core/res/res/drawable/btn_cab_done_quantum.xml @@ -18,11 +18,11 @@ - + + android:tint="?attr/colorControlHighlight" /> + android:tint="?attr/colorControlHighlight"> - - - - - - - - + + + + + + + diff --git a/core/res/res/drawable/item_background_quantum.xml b/core/res/res/drawable/item_background_quantum.xml index 631d3e4824d34..c2a1c1274e0fd 100644 --- a/core/res/res/drawable/item_background_quantum.xml +++ b/core/res/res/drawable/item_background_quantum.xml @@ -15,5 +15,5 @@ --> diff --git a/core/res/res/drawable/list_selector_quantum.xml b/core/res/res/drawable/list_selector_quantum.xml index 0e185aaf903c4..6cd59e5ba0c7e 100644 --- a/core/res/res/drawable/list_selector_quantum.xml +++ b/core/res/res/drawable/list_selector_quantum.xml @@ -15,7 +15,7 @@ --> + android:tint="?attr/colorControlHighlight"> diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index fd81362780b7e..c05dfcab5b869 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -975,11 +975,11 @@ + + + - - - diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 32ce568ec7f82..ce0d2d5c801b5 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -2134,7 +2134,7 @@ - + diff --git a/core/res/res/values/styles_quantum.xml b/core/res/res/values/styles_quantum.xml index d04bddf27c291..e714e12124c38 100644 --- a/core/res/res/values/styles_quantum.xml +++ b/core/res/res/values/styles_quantum.xml @@ -364,6 +364,7 @@ please see styles_device_defaults.xml. ?attr/textColorPrimary 48dip 96dip + 2dip @anim/button_state_list_anim_quantum @@ -437,7 +438,7 @@ please see styles_device_defaults.xml. - + - + - + - + - + - - + + @@ -718,8 +719,9 @@ please see themes_device_defaults.xml. ?attr/textColorSecondary ?attr/colorPrimary - @color/quantum_grey_100 - @color/quantum_grey_500 + #30000000 + + @color/btn_default_quantum_light