summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authorAndy Mast <andy@cyngn.com>2014-05-01 16:49:46 -0700
committerAndy Mast <andy@cyngn.com>2014-05-06 15:18:56 -0700
commit26d5e45ea0a71ae92c762032c6c647299b1b66b3 (patch)
tree74286d137f19da6170035ac1ae4b0c6766340981 /res/drawable
parent339b06cd3920c7bf16d9464a9cc469233f3475b1 (diff)
downloadpackages_apps_ThemeChooser-26d5e45ea0a71ae92c762032c6c647299b1b66b3.tar.gz
packages_apps_ThemeChooser-26d5e45ea0a71ae92c762032c6c647299b1b66b3.tar.bz2
packages_apps_ThemeChooser-26d5e45ea0a71ae92c762032c6c647299b1b66b3.zip
Theme Chooser: Initial Contribution [1/2]
Introduces a new theme chooser UI for the new theme engine. The new theme chooser allows the user to mix'n'match theme components (styles, boot anim, icons, fonts, wallpapers, sounds). Contributors: Adrian Foulk - UX Lead Andrew Mast - Software Engineer Clark Scheff - Software Engineer RJ Oakes - QA Engineer Special thanks to T-Mobile for open sourcing the original theme engine. Change-Id: I59aab2a262314962c2034eb36044564acec769a1
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/apply_button_bg.xml7
-rw-r--r--res/drawable/apply_button_text.xml7
-rw-r--r--res/drawable/progress.xml6
-rw-r--r--res/drawable/progress_bg.xml7
-rw-r--r--res/drawable/progress_bg2.xml7
5 files changed, 34 insertions, 0 deletions
diff --git a/res/drawable/apply_button_bg.xml b/res/drawable/apply_button_bg.xml
new file mode 100644
index 0000000..b598916
--- /dev/null
+++ b/res/drawable/apply_button_bg.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_enabled="false" android:drawable="@color/author_grey" />
+ <item android:state_pressed="true" android:drawable="@color/apply_button_pressed_color" />
+ <item android:drawable="@drawable/progress" />
+</selector> \ No newline at end of file
diff --git a/res/drawable/apply_button_text.xml b/res/drawable/apply_button_text.xml
new file mode 100644
index 0000000..1eb1088
--- /dev/null
+++ b/res/drawable/apply_button_text.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_enabled="false"
+ android:color="@color/apply_button_text_color_disabled" />
+ <item android:color="@color/apply_button_text_color_enabled" />
+</selector> \ No newline at end of file
diff --git a/res/drawable/progress.xml b/res/drawable/progress.xml
new file mode 100644
index 0000000..8e65bd5
--- /dev/null
+++ b/res/drawable/progress.xml
@@ -0,0 +1,6 @@
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@android:id/background" android:drawable="@drawable/progress_bg"/>
+ <item android:id="@android:id/progress">
+ <clip android:drawable="@drawable/progress_bg2"/>
+ </item>
+</layer-list>
diff --git a/res/drawable/progress_bg.xml b/res/drawable/progress_bg.xml
new file mode 100644
index 0000000..6b0a128
--- /dev/null
+++ b/res/drawable/progress_bg.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <solid
+ android:color="@color/apply_button_default_color" />
+</shape> \ No newline at end of file
diff --git a/res/drawable/progress_bg2.xml b/res/drawable/progress_bg2.xml
new file mode 100644
index 0000000..24725ed
--- /dev/null
+++ b/res/drawable/progress_bg2.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <solid
+ android:color="@color/apply_button_progress_color" />
+</shape> \ No newline at end of file