diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar.xml b/AndorsTrail/res/drawable/ui_gold_buttonbar.xml
new file mode 100644
index 000000000..ba80c9ef0
--- /dev/null
+++ b/AndorsTrail/res/drawable/ui_gold_buttonbar.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_bg.xml b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg.xml
similarity index 58%
rename from AndorsTrail/res/drawable/ui_red_buttonbar_bg.xml
rename to AndorsTrail/res/drawable/ui_gold_buttonbar_bg.xml
index 23e61317e..a8924c865 100644
--- a/AndorsTrail/res/drawable/ui_red_buttonbar_bg.xml
+++ b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg.xml
@@ -1,41 +1,41 @@
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_disabled_pressed.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_disabled_pressed.9.png
new file mode 100644
index 000000000..53a9d2314
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_disabled_pressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_disabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_disabled_unpressed.9.png
new file mode 100644
index 000000000..cea9b2e08
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_disabled_unpressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_enabled_pressed.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_enabled_pressed.9.png
new file mode 100644
index 000000000..b30122011
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_enabled_pressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_enabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_enabled_unpressed.9.png
new file mode 100644
index 000000000..01a43e709
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_bg_enabled_unpressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_frame.xml b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame.xml
new file mode 100644
index 000000000..8e2af421c
--- /dev/null
+++ b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_hleft.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_hleft.9.png
new file mode 100644
index 000000000..031096f3a
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_hleft.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_hmid.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_hmid.9.png
new file mode 100644
index 000000000..faa66db9d
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_hmid.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_hright.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_hright.9.png
new file mode 100644
index 000000000..59e8d7019
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_hright.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_solo.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_solo.9.png
new file mode 100644
index 000000000..491315374
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_solo.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_vbottom.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_vbottom.9.png
new file mode 100644
index 000000000..2ae6ebb5b
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_vbottom.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_vmid.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_vmid.9.png
new file mode 100644
index 000000000..2122ccb74
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_vmid.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_vtop.9.png b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_vtop.9.png
new file mode 100644
index 000000000..b72b0a5c6
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_buttonbar_frame_vtop.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_red_groupindicator.xml b/AndorsTrail/res/drawable/ui_gold_groupindicator.xml
similarity index 59%
rename from AndorsTrail/res/drawable/ui_red_groupindicator.xml
rename to AndorsTrail/res/drawable/ui_gold_groupindicator.xml
index 03718f6ff..07d6d59cf 100644
--- a/AndorsTrail/res/drawable/ui_red_groupindicator.xml
+++ b/AndorsTrail/res/drawable/ui_gold_groupindicator.xml
@@ -2,12 +2,12 @@
diff --git a/AndorsTrail/res/drawable/ui_gold_lightframe.9.png b/AndorsTrail/res/drawable/ui_gold_lightframe.9.png
new file mode 100644
index 000000000..51d1e5aea
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_lightframe.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_lightframe_gray.9.png b/AndorsTrail/res/drawable/ui_gold_lightframe_gray.9.png
new file mode 100644
index 000000000..a894ccee3
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_lightframe_gray.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_lightframe_gray_highlight.9.png b/AndorsTrail/res/drawable/ui_gold_lightframe_gray_highlight.9.png
new file mode 100644
index 000000000..8fd633075
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_lightframe_gray_highlight.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_lightframe_highlight.9.png b/AndorsTrail/res/drawable/ui_gold_lightframe_highlight.9.png
new file mode 100644
index 000000000..076f9befd
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_lightframe_highlight.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_red_listseparator.xml b/AndorsTrail/res/drawable/ui_gold_listseparator.xml
similarity index 78%
rename from AndorsTrail/res/drawable/ui_red_listseparator.xml
rename to AndorsTrail/res/drawable/ui_gold_listseparator.xml
index 93603f8b1..7d3fa7148 100644
--- a/AndorsTrail/res/drawable/ui_red_listseparator.xml
+++ b/AndorsTrail/res/drawable/ui_gold_listseparator.xml
@@ -1,7 +1,7 @@
diff --git a/AndorsTrail/res/drawable/ui_gold_listseparator_img.png b/AndorsTrail/res/drawable/ui_gold_listseparator_img.png
new file mode 100644
index 000000000..989c09705
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_listseparator_img.png differ
diff --git a/AndorsTrail/res/drawable/ui_red_radiobutton.xml b/AndorsTrail/res/drawable/ui_gold_radiobutton.xml
similarity index 63%
rename from AndorsTrail/res/drawable/ui_red_radiobutton.xml
rename to AndorsTrail/res/drawable/ui_gold_radiobutton.xml
index e48bfb1ba..e582e08a0 100644
--- a/AndorsTrail/res/drawable/ui_red_radiobutton.xml
+++ b/AndorsTrail/res/drawable/ui_gold_radiobutton.xml
@@ -2,38 +2,38 @@
diff --git a/AndorsTrail/res/drawable/ui_gold_radiobutton_disabled_checked.9.png b/AndorsTrail/res/drawable/ui_gold_radiobutton_disabled_checked.9.png
new file mode 100644
index 000000000..a5df7e769
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_radiobutton_disabled_checked.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_radiobutton_disabled_unchecked.9.png b/AndorsTrail/res/drawable/ui_gold_radiobutton_disabled_unchecked.9.png
new file mode 100644
index 000000000..6d121908a
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_radiobutton_disabled_unchecked.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_radiobutton_enabled_checked.9.png b/AndorsTrail/res/drawable/ui_gold_radiobutton_enabled_checked.9.png
new file mode 100644
index 000000000..dd3da1bc9
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_radiobutton_enabled_checked.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_radiobutton_enabled_unchecked.9.png b/AndorsTrail/res/drawable/ui_gold_radiobutton_enabled_unchecked.9.png
new file mode 100644
index 000000000..13e612e71
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_radiobutton_enabled_unchecked.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_richframe.9.png b/AndorsTrail/res/drawable/ui_gold_richframe.9.png
new file mode 100644
index 000000000..fa52f7e9f
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_richframe.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_richframe_gray.9.png b/AndorsTrail/res/drawable/ui_gold_richframe_gray.9.png
new file mode 100644
index 000000000..d2c7d0229
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_richframe_gray.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_red_spinner.xml b/AndorsTrail/res/drawable/ui_gold_spinner.xml
similarity index 50%
rename from AndorsTrail/res/drawable/ui_red_spinner.xml
rename to AndorsTrail/res/drawable/ui_gold_spinner.xml
index f3cc50f12..bd52b9b29 100644
--- a/AndorsTrail/res/drawable/ui_red_spinner.xml
+++ b/AndorsTrail/res/drawable/ui_gold_spinner.xml
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/AndorsTrail/res/drawable/ui_gold_spinner_arrow.9.png b/AndorsTrail/res/drawable/ui_gold_spinner_arrow.9.png
new file mode 100644
index 000000000..8dadd17f9
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_spinner_arrow.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_red_spinner_bg.xml b/AndorsTrail/res/drawable/ui_gold_spinner_bg.xml
similarity index 68%
rename from AndorsTrail/res/drawable/ui_red_spinner_bg.xml
rename to AndorsTrail/res/drawable/ui_gold_spinner_bg.xml
index 3585c4685..7f4c39a5f 100644
--- a/AndorsTrail/res/drawable/ui_red_spinner_bg.xml
+++ b/AndorsTrail/res/drawable/ui_gold_spinner_bg.xml
@@ -3,25 +3,25 @@
android:constantSize="true">
diff --git a/AndorsTrail/res/drawable/ui_gold_spinner_disabled_pressed.9.png b/AndorsTrail/res/drawable/ui_gold_spinner_disabled_pressed.9.png
new file mode 100644
index 000000000..361ed1678
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_spinner_disabled_pressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_spinner_disabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_gold_spinner_disabled_unpressed.9.png
new file mode 100644
index 000000000..f3b285aaf
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_spinner_disabled_unpressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_spinner_enabled_pressed.9.png b/AndorsTrail/res/drawable/ui_gold_spinner_enabled_pressed.9.png
new file mode 100644
index 000000000..f836888e8
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_spinner_enabled_pressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_spinner_enabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_gold_spinner_enabled_unpressed.9.png
new file mode 100644
index 000000000..755cd3586
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_spinner_enabled_unpressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_red_spinner_list_bg.xml b/AndorsTrail/res/drawable/ui_gold_spinner_list_bg.xml
similarity index 75%
rename from AndorsTrail/res/drawable/ui_red_spinner_list_bg.xml
rename to AndorsTrail/res/drawable/ui_gold_spinner_list_bg.xml
index 5ad786540..092a24cc9 100644
--- a/AndorsTrail/res/drawable/ui_red_spinner_list_bg.xml
+++ b/AndorsTrail/res/drawable/ui_gold_spinner_list_bg.xml
@@ -1,7 +1,7 @@
-
-
-
-
+
+
+
+
diff --git a/AndorsTrail/res/drawable/ui_gold_stdframe.9.png b/AndorsTrail/res/drawable/ui_gold_stdframe.9.png
new file mode 100644
index 000000000..f69a5d4ec
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_stdframe.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_stdframe_gray.9.png b/AndorsTrail/res/drawable/ui_gold_stdframe_gray.9.png
new file mode 100644
index 000000000..428095f64
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_stdframe_gray.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_submenu_indicator.9.png b/AndorsTrail/res/drawable/ui_gold_submenu_indicator.9.png
new file mode 100644
index 000000000..8a2388850
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_submenu_indicator.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_tabframe.9.png b/AndorsTrail/res/drawable/ui_gold_tabframe.9.png
new file mode 100644
index 000000000..391f69edc
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_tabframe.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_tabframe_topoverlay.9.png b/AndorsTrail/res/drawable/ui_gold_tabframe_topoverlay.9.png
new file mode 100644
index 000000000..54cdfb917
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_tabframe_topoverlay.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_red_tabwidget.xml b/AndorsTrail/res/drawable/ui_gold_tabwidget.xml
similarity index 66%
rename from AndorsTrail/res/drawable/ui_red_tabwidget.xml
rename to AndorsTrail/res/drawable/ui_gold_tabwidget.xml
index e3b9512ad..91ddefeed 100644
--- a/AndorsTrail/res/drawable/ui_red_tabwidget.xml
+++ b/AndorsTrail/res/drawable/ui_gold_tabwidget.xml
@@ -3,31 +3,31 @@
android:constantSize="true">
diff --git a/AndorsTrail/res/drawable/ui_gold_tabwidget_disabled_selected.9.png b/AndorsTrail/res/drawable/ui_gold_tabwidget_disabled_selected.9.png
new file mode 100644
index 000000000..7757be0aa
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_tabwidget_disabled_selected.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_tabwidget_disabled_unselected.9.png b/AndorsTrail/res/drawable/ui_gold_tabwidget_disabled_unselected.9.png
new file mode 100644
index 000000000..39ab30028
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_tabwidget_disabled_unselected.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_tabwidget_enabled_selected.9.png b/AndorsTrail/res/drawable/ui_gold_tabwidget_enabled_selected.9.png
new file mode 100644
index 000000000..23bbd722e
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_tabwidget_enabled_selected.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_tabwidget_enabled_unselected.9.png b/AndorsTrail/res/drawable/ui_gold_tabwidget_enabled_unselected.9.png
new file mode 100644
index 000000000..fac8880ef
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_tabwidget_enabled_unselected.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_red_textbutton.xml b/AndorsTrail/res/drawable/ui_gold_textbutton.xml
similarity index 69%
rename from AndorsTrail/res/drawable/ui_red_textbutton.xml
rename to AndorsTrail/res/drawable/ui_gold_textbutton.xml
index d763b779b..bb7b53199 100644
--- a/AndorsTrail/res/drawable/ui_red_textbutton.xml
+++ b/AndorsTrail/res/drawable/ui_gold_textbutton.xml
@@ -3,25 +3,25 @@
android:constantSize="true">
diff --git a/AndorsTrail/res/drawable/ui_gold_textbutton_disabled_pressed.9.png b/AndorsTrail/res/drawable/ui_gold_textbutton_disabled_pressed.9.png
new file mode 100644
index 000000000..7d744230e
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_textbutton_disabled_pressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_textbutton_disabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_gold_textbutton_disabled_unpressed.9.png
new file mode 100644
index 000000000..13d7fd920
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_textbutton_disabled_unpressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_textbutton_enabled_pressed.9.png b/AndorsTrail/res/drawable/ui_gold_textbutton_enabled_pressed.9.png
new file mode 100644
index 000000000..d64b2da4b
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_textbutton_enabled_pressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_gold_textbutton_enabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_gold_textbutton_enabled_unpressed.9.png
new file mode 100644
index 000000000..9b2f2841a
Binary files /dev/null and b/AndorsTrail/res/drawable/ui_gold_textbutton_enabled_unpressed.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_red_togglebutton.xml b/AndorsTrail/res/drawable/ui_gold_togglebutton.xml
similarity index 66%
rename from AndorsTrail/res/drawable/ui_red_togglebutton.xml
rename to AndorsTrail/res/drawable/ui_gold_togglebutton.xml
index 8232f83c9..8943552a0 100644
--- a/AndorsTrail/res/drawable/ui_red_togglebutton.xml
+++ b/AndorsTrail/res/drawable/ui_gold_togglebutton.xml
@@ -3,31 +3,31 @@
android:constantSize="true">
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar.xml b/AndorsTrail/res/drawable/ui_red_buttonbar.xml
deleted file mode 100644
index dc2226f09..000000000
--- a/AndorsTrail/res/drawable/ui_red_buttonbar.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_bg_disabled_pressed.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_bg_disabled_pressed.9.png
deleted file mode 100644
index 2fce90b77..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_bg_disabled_pressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_bg_disabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_bg_disabled_unpressed.9.png
deleted file mode 100644
index 13f832e0b..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_bg_disabled_unpressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_bg_enabled_pressed.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_bg_enabled_pressed.9.png
deleted file mode 100644
index bf8b7d9ac..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_bg_enabled_pressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_bg_enabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_bg_enabled_unpressed.9.png
deleted file mode 100644
index 319decbad..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_bg_enabled_unpressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_frame.xml b/AndorsTrail/res/drawable/ui_red_buttonbar_frame.xml
deleted file mode 100644
index fa25bfb12..000000000
--- a/AndorsTrail/res/drawable/ui_red_buttonbar_frame.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_hleft.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_frame_hleft.9.png
deleted file mode 100644
index 5877e2dfd..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_hleft.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_hmid.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_frame_hmid.9.png
deleted file mode 100644
index f32135f88..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_hmid.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_hright.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_frame_hright.9.png
deleted file mode 100644
index fbfd37e1a..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_hright.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_solo.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_frame_solo.9.png
deleted file mode 100644
index 76aa7e5ca..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_solo.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_vbottom.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_frame_vbottom.9.png
deleted file mode 100644
index 79069afaa..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_vbottom.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_vmid.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_frame_vmid.9.png
deleted file mode 100644
index 42781e821..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_vmid.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_vtop.9.png b/AndorsTrail/res/drawable/ui_red_buttonbar_frame_vtop.9.png
deleted file mode 100644
index 1b5f98451..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_buttonbar_frame_vtop.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_lightframe.9.png b/AndorsTrail/res/drawable/ui_red_lightframe.9.png
deleted file mode 100644
index 2ada0ab99..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_lightframe.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_lightframe_gray.9.png b/AndorsTrail/res/drawable/ui_red_lightframe_gray.9.png
deleted file mode 100644
index 12133687f..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_lightframe_gray.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_lightframe_gray_highlight.9.png b/AndorsTrail/res/drawable/ui_red_lightframe_gray_highlight.9.png
deleted file mode 100644
index feee6a438..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_lightframe_gray_highlight.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_lightframe_highlight.9.png b/AndorsTrail/res/drawable/ui_red_lightframe_highlight.9.png
deleted file mode 100644
index 5f33bc1fa..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_lightframe_highlight.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_listseparator_img.png b/AndorsTrail/res/drawable/ui_red_listseparator_img.png
deleted file mode 100644
index 33ef3acd5..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_listseparator_img.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_radiobutton_disabled_checked.9.png b/AndorsTrail/res/drawable/ui_red_radiobutton_disabled_checked.9.png
deleted file mode 100644
index b46efd89d..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_radiobutton_disabled_checked.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_radiobutton_disabled_unchecked.9.png b/AndorsTrail/res/drawable/ui_red_radiobutton_disabled_unchecked.9.png
deleted file mode 100644
index 4540d2d40..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_radiobutton_disabled_unchecked.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_radiobutton_enabled_checked.9.png b/AndorsTrail/res/drawable/ui_red_radiobutton_enabled_checked.9.png
deleted file mode 100644
index 88484359b..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_radiobutton_enabled_checked.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_radiobutton_enabled_unchecked.9.png b/AndorsTrail/res/drawable/ui_red_radiobutton_enabled_unchecked.9.png
deleted file mode 100644
index f5c081663..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_radiobutton_enabled_unchecked.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_richframe.9.png b/AndorsTrail/res/drawable/ui_red_richframe.9.png
deleted file mode 100644
index 970f6beb8..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_richframe.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_richframe_gray.9.png b/AndorsTrail/res/drawable/ui_red_richframe_gray.9.png
deleted file mode 100644
index 47d6f40ec..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_richframe_gray.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_spinner_arrow.9.png b/AndorsTrail/res/drawable/ui_red_spinner_arrow.9.png
deleted file mode 100644
index 07dfda17d..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_spinner_arrow.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_spinner_disabled_pressed.9.png b/AndorsTrail/res/drawable/ui_red_spinner_disabled_pressed.9.png
deleted file mode 100644
index ac6275e4e..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_spinner_disabled_pressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_spinner_disabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_red_spinner_disabled_unpressed.9.png
deleted file mode 100644
index edb3a1766..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_spinner_disabled_unpressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_spinner_enabled_pressed.9.png b/AndorsTrail/res/drawable/ui_red_spinner_enabled_pressed.9.png
deleted file mode 100644
index 93a008be1..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_spinner_enabled_pressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_spinner_enabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_red_spinner_enabled_unpressed.9.png
deleted file mode 100644
index 52e3a9abd..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_spinner_enabled_unpressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_stdframe.9.png b/AndorsTrail/res/drawable/ui_red_stdframe.9.png
deleted file mode 100644
index 3d21e9bfa..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_stdframe.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_stdframe_gray.9.png b/AndorsTrail/res/drawable/ui_red_stdframe_gray.9.png
deleted file mode 100644
index 59bbf8b01..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_stdframe_gray.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_submenu_indicator.9.png b/AndorsTrail/res/drawable/ui_red_submenu_indicator.9.png
deleted file mode 100644
index 221a89e6b..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_submenu_indicator.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_tabframe.9.png b/AndorsTrail/res/drawable/ui_red_tabframe.9.png
deleted file mode 100644
index 8130b23cb..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_tabframe.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_tabframe_topoverlay.9.png b/AndorsTrail/res/drawable/ui_red_tabframe_topoverlay.9.png
deleted file mode 100644
index d2e5e7799..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_tabframe_topoverlay.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_tabwidget_disabled_selected.9.png b/AndorsTrail/res/drawable/ui_red_tabwidget_disabled_selected.9.png
deleted file mode 100644
index ab0f2bf56..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_tabwidget_disabled_selected.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_tabwidget_disabled_unselected.9.png b/AndorsTrail/res/drawable/ui_red_tabwidget_disabled_unselected.9.png
deleted file mode 100644
index 13be84b54..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_tabwidget_disabled_unselected.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_tabwidget_enabled_selected.9.png b/AndorsTrail/res/drawable/ui_red_tabwidget_enabled_selected.9.png
deleted file mode 100644
index 5156f1aa3..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_tabwidget_enabled_selected.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_tabwidget_enabled_unselected.9.png b/AndorsTrail/res/drawable/ui_red_tabwidget_enabled_unselected.9.png
deleted file mode 100644
index 69c70711f..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_tabwidget_enabled_unselected.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_textbutton_disabled_pressed.9.png b/AndorsTrail/res/drawable/ui_red_textbutton_disabled_pressed.9.png
deleted file mode 100644
index dab53d2ae..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_textbutton_disabled_pressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_textbutton_disabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_red_textbutton_disabled_unpressed.9.png
deleted file mode 100644
index ae0e1ecc6..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_textbutton_disabled_unpressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_textbutton_enabled_pressed.9.png b/AndorsTrail/res/drawable/ui_red_textbutton_enabled_pressed.9.png
deleted file mode 100644
index c0750e2b1..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_textbutton_enabled_pressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/drawable/ui_red_textbutton_enabled_unpressed.9.png b/AndorsTrail/res/drawable/ui_red_textbutton_enabled_unpressed.9.png
deleted file mode 100644
index 23167a1a5..000000000
Binary files a/AndorsTrail/res/drawable/ui_red_textbutton_enabled_unpressed.9.png and /dev/null differ
diff --git a/AndorsTrail/res/values-v14/ui_theme.xml b/AndorsTrail/res/values-v14/ui_theme.xml
index c86578fb1..c2f0ef57e 100644
--- a/AndorsTrail/res/values-v14/ui_theme.xml
+++ b/AndorsTrail/res/values-v14/ui_theme.xml
@@ -10,4 +10,16 @@
- @style/AndorsTrail_Style_StdFrame
- @style/AndorsTrailDialogTheme_Blue
+
+
+
+
+
diff --git a/AndorsTrail/res/values/arrays.xml b/AndorsTrail/res/values/arrays.xml
index 5fe53475d..582abb1b8 100644
--- a/AndorsTrail/res/values/arrays.xml
+++ b/AndorsTrail/res/values/arrays.xml
@@ -100,7 +100,7 @@
- @string/preferences_display_theme_blue
- - @string/preferences_display_theme_red
+ - @string/preferences_display_theme_gold
- 0
diff --git a/AndorsTrail/res/values/strings.xml b/AndorsTrail/res/values/strings.xml
index c9ca92ced..8a178ed69 100644
--- a/AndorsTrail/res/values/strings.xml
+++ b/AndorsTrail/res/values/strings.xml
@@ -693,10 +693,14 @@ Every skill level increases the attack chance of weapons with %1$d %% of their o
Unlocked
+
+
Theme
- Choose the UI theme (requires restart).
+ Choose the UI theme. (requires restart)
Blue
- Red
+ Gold
+ Changing UI theme requires restart. Andor\'s Trail has been closed.
+
diff --git a/AndorsTrail/res/values/ui_styles.xml b/AndorsTrail/res/values/ui_styles.xml
index a77a5c8da..45cf31f6b 100644
--- a/AndorsTrail/res/values/ui_styles.xml
+++ b/AndorsTrail/res/values/ui_styles.xml
@@ -127,7 +127,6 @@
diff --git a/AndorsTrail/res/values/ui_theme.xml b/AndorsTrail/res/values/ui_theme.xml
index 1a6a98158..5c96e35e6 100644
--- a/AndorsTrail/res/values/ui_theme.xml
+++ b/AndorsTrail/res/values/ui_theme.xml
@@ -200,110 +200,136 @@
- @null
-
-
-
+
+
+
+ #362109
+ #5e441e
+ #866933
+
+
+
+
+
+
+
+
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/AndorsTrailPreferences.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/AndorsTrailPreferences.java
index 1c9acbdbf..d90d5ec01 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/AndorsTrailPreferences.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/AndorsTrailPreferences.java
@@ -98,6 +98,5 @@ public final class AndorsTrailPreferences {
dest.useLocalizedResources = true;
dest.selectedTheme = 0;
}
- ThemeHelper.changeTheme(ThemeHelper.Theme.values()[dest.selectedTheme]);
}
}
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/Dialogs.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/Dialogs.java
index eb359b57e..cfee5d906 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/Dialogs.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/Dialogs.java
@@ -248,7 +248,7 @@ public final class Dialogs {
Intent intent = new Intent(ctx, ItemInfoActivity.class);
intent.putExtra("buttonText", buttonText);
intent.putExtra("buttonEnabled", buttonEnabled);
- intent.putExtra("moreActions", (actionType == ItemInfoActivity.ItemInfoAction.equip || actionType == ItemInfoActivity.ItemInfoAction.use));
+ intent.putExtra("moreActions", (actionType == ItemInfoActivity.ItemInfoAction.equip || actionType == ItemInfoActivity.ItemInfoAction.use || actionType == ItemInfoActivity.ItemInfoAction.none));
intent.putExtra("itemTypeID", itemTypeID);
intent.putExtra("actionType", actionType.name());
if (inventorySlot != null) intent.putExtra("inventorySlot", inventorySlot.name());
@@ -262,19 +262,6 @@ public final class Dialogs {
}
public static void showConfirmRest(final Activity currentActivity, final ControllerContext controllerContext, final MapObject area) {
- // Dialog d = new AlertDialog.Builder(new ContextThemeWrapper(currentActivity, R.style.AndorsTrailStyle))
- // .setTitle(R.string.dialog_rest_title)
- // .setMessage(R.string.dialog_rest_confirm_message)
- // .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
- // @Override
- // public void onClick(DialogInterface dialog, int which) {
- // controllerContext.mapController.rest(area);
- // }
- // })
-
- //
- // .setNegativeButton(android.R.string.no, null)
- // .create();
final Dialog d = CustomDialogFactory.createDialog(currentActivity,
currentActivity.getResources().getString(R.string.dialog_rest_title),
null,
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/ConversationActivity.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/ConversationActivity.java
index 57e50b26e..c38814586 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/ConversationActivity.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/ConversationActivity.java
@@ -472,7 +472,7 @@ public final class ConversationActivity
rb.setFocusableInTouchMode(false);
if (replyGroup.getChildCount() == 0) { //Add a separator before first item
ImageView iv = new ImageView(this);
- iv.setBackgroundResource(R.drawable.ui_blue_listseparator);
+ iv.setBackgroundResource(ThemeHelper.getThemeResource(this, R.attr.ui_theme_listseparator_drawable));
RadioGroup.LayoutParams ivLayoutParams = new RadioGroup.LayoutParams(RadioGroup.LayoutParams.MATCH_PARENT, RadioGroup.LayoutParams.WRAP_CONTENT);
ivLayoutParams.setMargins(0, getResources().getDimensionPixelOffset(R.dimen.conversation_replyseparator_margintop), 0, getResources().getDimensionPixelOffset(R.dimen.conversation_replyseparator_marginbottom));
iv.setLayoutParams(ivLayoutParams);
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/fragment/HeroinfoActivity_Inventory.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/fragment/HeroinfoActivity_Inventory.java
index 634830de5..6a95ee8fa 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/fragment/HeroinfoActivity_Inventory.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/fragment/HeroinfoActivity_Inventory.java
@@ -2,25 +2,7 @@ package com.gpl.rpg.AndorsTrail.activity.fragment;
import java.util.Arrays;
-import com.gpl.rpg.AndorsTrail.AndorsTrailApplication;
-import com.gpl.rpg.AndorsTrail.Dialogs;
-import com.gpl.rpg.AndorsTrail.R;
-import com.gpl.rpg.AndorsTrail.activity.ItemInfoActivity;
-import com.gpl.rpg.AndorsTrail.context.ControllerContext;
-import com.gpl.rpg.AndorsTrail.context.WorldContext;
-import com.gpl.rpg.AndorsTrail.controller.ItemController;
-import com.gpl.rpg.AndorsTrail.model.actor.HeroCollection;
-import com.gpl.rpg.AndorsTrail.model.actor.Player;
-import com.gpl.rpg.AndorsTrail.model.item.Inventory;
-import com.gpl.rpg.AndorsTrail.model.item.ItemContainer;
-import com.gpl.rpg.AndorsTrail.model.item.ItemType;
-import com.gpl.rpg.AndorsTrail.resource.tiles.TileCollection;
-import com.gpl.rpg.AndorsTrail.view.CustomMenuInflater;
-import com.gpl.rpg.AndorsTrail.view.ItemContainerAdapter;
-import com.gpl.rpg.AndorsTrail.view.SpinnerEmulator;
-
import android.app.Activity;
-import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
@@ -39,6 +21,23 @@ import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
+import com.gpl.rpg.AndorsTrail.AndorsTrailApplication;
+import com.gpl.rpg.AndorsTrail.Dialogs;
+import com.gpl.rpg.AndorsTrail.R;
+import com.gpl.rpg.AndorsTrail.activity.ItemInfoActivity;
+import com.gpl.rpg.AndorsTrail.context.ControllerContext;
+import com.gpl.rpg.AndorsTrail.context.WorldContext;
+import com.gpl.rpg.AndorsTrail.controller.ItemController;
+import com.gpl.rpg.AndorsTrail.model.actor.HeroCollection;
+import com.gpl.rpg.AndorsTrail.model.actor.Player;
+import com.gpl.rpg.AndorsTrail.model.item.Inventory;
+import com.gpl.rpg.AndorsTrail.model.item.ItemContainer;
+import com.gpl.rpg.AndorsTrail.model.item.ItemType;
+import com.gpl.rpg.AndorsTrail.resource.tiles.TileCollection;
+import com.gpl.rpg.AndorsTrail.view.CustomMenuInflater;
+import com.gpl.rpg.AndorsTrail.view.ItemContainerAdapter;
+import com.gpl.rpg.AndorsTrail.view.SpinnerEmulator;
+
public final class HeroinfoActivity_Inventory extends Fragment implements CustomMenuInflater.MenuItemSelectedListener {
private static final int INTENTREQUEST_ITEMINFO = 3;
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/fragment/StartScreenActivity_MainMenu.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/fragment/StartScreenActivity_MainMenu.java
index 36a89b7fe..d0f5dec29 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/fragment/StartScreenActivity_MainMenu.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/fragment/StartScreenActivity_MainMenu.java
@@ -28,6 +28,7 @@ import com.gpl.rpg.AndorsTrail.controller.Constants;
import com.gpl.rpg.AndorsTrail.resource.tiles.TileManager;
import com.gpl.rpg.AndorsTrail.savegames.Savegames;
import com.gpl.rpg.AndorsTrail.savegames.Savegames.FileHeader;
+import com.gpl.rpg.AndorsTrail.util.ThemeHelper;
import com.gpl.rpg.AndorsTrail.view.CustomDialogFactory;
public class StartScreenActivity_MainMenu extends Fragment {
@@ -262,6 +263,12 @@ public class StartScreenActivity_MainMenu extends Fragment {
return;
}
}
+ if (ThemeHelper.changeTheme(ThemeHelper.Theme.values()[preferences.selectedTheme])) {
+ // Changing the theme requires a restart to re-create all activities.
+ Toast.makeText(getActivity(), R.string.change_theme_requires_restart, Toast.LENGTH_LONG).show();
+ getActivity().finish();
+ return;
+ }
app.getWorld().tileManager.updatePreferences(preferences);
}
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/util/ThemeHelper.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/util/ThemeHelper.java
index 117558618..72eada303 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/util/ThemeHelper.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/util/ThemeHelper.java
@@ -8,14 +8,13 @@ import com.gpl.rpg.AndorsTrail.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
+import android.graphics.drawable.Drawable;
public class ThemeHelper {
private static final class ThemeSet {
- String name;
int baseThemeRes, noBackgroundThemeRes, dialogThemeRes;
- public ThemeSet(String name, int baseThemeRes, int noBackgroundThemeRes, int dialogThemeRes) {
- this.name = name;
+ public ThemeSet(int baseThemeRes, int noBackgroundThemeRes, int dialogThemeRes) {
this.baseThemeRes = baseThemeRes;
this.noBackgroundThemeRes = noBackgroundThemeRes;
this.dialogThemeRes = dialogThemeRes;
@@ -24,15 +23,16 @@ public class ThemeHelper {
public static enum Theme {
blue,
- red
+ gold
}
private static final Map THEME_SETS = new HashMap();
private static Theme SELECTED_THEME = Theme.blue;
+ private static boolean first = true;
static {
- THEME_SETS.put(Theme.blue, new ThemeSet("Blue", R.style.AndorsTrailTheme_Blue, R.style.AndorsTrailTheme_Blue_NoBackground, R.style.AndorsTrailDialogTheme_Blue));
- THEME_SETS.put(Theme.red, new ThemeSet("Red", R.style.AndorsTrailTheme_Red, R.style.AndorsTrailTheme_Red_NoBackground, R.style.AndorsTrailDialogTheme_Red));
+ THEME_SETS.put(Theme.blue, new ThemeSet(R.style.AndorsTrailTheme_Blue, R.style.AndorsTrailTheme_Blue_NoBackground, R.style.AndorsTrailDialogTheme_Blue));
+ THEME_SETS.put(Theme.gold, new ThemeSet(R.style.AndorsTrailTheme_Gold, R.style.AndorsTrailTheme_Gold_NoBackground, R.style.AndorsTrailDialogTheme_Gold));
}
public static int getThemeColor(Context context, int attrResId) {
@@ -42,8 +42,18 @@ public class ThemeHelper {
return c;
}
- public static String getThemeName(Theme t) {
- return THEME_SETS.get(t).name;
+ public static int getThemeResource(Context context, int attrResId) {
+ TypedArray ta = context.getTheme().obtainStyledAttributes(new int[] {attrResId});
+ int resId = ta.getResourceId(0, 0);
+ ta.recycle();
+ return resId;
+ }
+
+ public static Drawable getThemeDrawable(Context context, int attrResId) {
+ TypedArray ta = context.getTheme().obtainStyledAttributes(new int[] {attrResId});
+ Drawable d = ta.getDrawable(0);
+ ta.recycle();
+ return d;
}
public static int getBaseTheme() {
@@ -58,7 +68,17 @@ public class ThemeHelper {
return THEME_SETS.get(SELECTED_THEME).dialogThemeRes;
}
- public static void changeTheme(Theme t) {
+ //Returns true if theme has changed after startup.
+ public static boolean changeTheme(Theme t) {
+ if (t == SELECTED_THEME) {
+ first = false;
+ return false;
+ }
SELECTED_THEME = t;
+ if (first) {
+ first = false;
+ return false;
+ }
+ return true;
}
}
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CustomDialogFactory.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CustomDialogFactory.java
index 354ca9329..640dc3c84 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CustomDialogFactory.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CustomDialogFactory.java
@@ -115,7 +115,7 @@ public class CustomDialogFactory {
Button b = new Button(dialog.getContext());
b.setLayoutParams(params);
//Old android versions need this "reminder"
- b.setBackgroundDrawable(dialog.getContext().getResources().getDrawable(R.drawable.ui_blue_textbutton));
+ b.setBackgroundDrawable(ThemeHelper.getThemeDrawable(dialog.getContext(), R.attr.ui_theme_textbutton_drawable));
b.setTextColor(ThemeHelper.getThemeColor(dialog.getContext(), R.attr.ui_theme_dialogue_light_color));
b.setText(textId);
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/DisplayActiveActorConditionIcons.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/DisplayActiveActorConditionIcons.java
index 3cbd5732b..cab9df2d8 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/DisplayActiveActorConditionIcons.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/DisplayActiveActorConditionIcons.java
@@ -21,6 +21,7 @@ import com.gpl.rpg.AndorsTrail.controller.listeners.ActorConditionListener;
import com.gpl.rpg.AndorsTrail.model.ability.ActorCondition;
import com.gpl.rpg.AndorsTrail.model.actor.Actor;
import com.gpl.rpg.AndorsTrail.resource.tiles.TileManager;
+import com.gpl.rpg.AndorsTrail.util.ThemeHelper;
public final class DisplayActiveActorConditionIcons implements ActorConditionListener {
@@ -262,7 +263,7 @@ public final class DisplayActiveActorConditionIcons implements ActorConditionLis
this.id = id;
this.image = new ActiveConditionIconImageView(context);
this.image.setId(id);
- this.image.setBackgroundResource(R.drawable.ui_blue_buttonbar);
+ this.image.setBackgroundResource(ThemeHelper.getThemeResource(context, R.attr.ui_theme_buttonbar_drawable));
this.image.setHorizontal();
this.image.reverse();
this.onNewIconAnimation = AnimationUtils.loadAnimation(context, R.anim.scaleup);