From df81e96a087339404adbb4fe22f9c69b6cab22fa Mon Sep 17 00:00:00 2001 From: Zukero Date: Fri, 17 Nov 2017 19:20:35 +0100 Subject: [PATCH] WARNING: Does not run! Huge clean-up. Separation between themes and style. Preparatory work for theme inheritance and alternative themes made by derivation. Problem: due to a pre-lollipop bug, I still have to remove some color indirections through attributes, as they are not preperly resolved. --- AndorsTrail/AndroidManifest.xml | 22 +- .../color/ui_blue_textbutton_textcolor.xml | 8 - .../color/ui_theme_textbutton_textcolor.xml | 8 + .../res/drawable/ui_blue_radiobutton.xml | 20 +- .../res/layout-land/heroinfo_inventory.xml | 10 +- AndorsTrail/res/layout/actorconditioninfo.xml | 6 +- AndorsTrail/res/layout/bulkselection.xml | 6 +- AndorsTrail/res/layout/combatview.xml | 6 +- AndorsTrail/res/layout/conversation.xml | 2 +- .../layout/custom_checkedlistitem_layout.xml | 2 +- .../res/layout/custom_dialog_title_icon.xml | 18 +- .../custom_menu_item_separator_layout.xml | 2 +- .../res/layout/custom_menu_submenu_layout.xml | 2 +- AndorsTrail/res/layout/displayworldmap.xml | 4 +- AndorsTrail/res/layout/heroinfo_inventory.xml | 10 +- .../res/layout/heroinfo_skill_list.xml | 8 +- AndorsTrail/res/layout/heroinfo_stats.xml | 18 +- AndorsTrail/res/layout/iteminfo.xml | 6 +- AndorsTrail/res/layout/levelup.xml | 6 +- AndorsTrail/res/layout/loadsave.xml | 10 +- AndorsTrail/res/layout/monsterencounter.xml | 6 +- AndorsTrail/res/layout/monsterinfo.xml | 6 +- AndorsTrail/res/layout/questlog.xml | 8 +- .../layout/quickbuttons_usable_inventory.xml | 21 +- AndorsTrail/res/layout/rangebar.xml | 4 +- AndorsTrail/res/layout/save_preview.xml | 2 +- AndorsTrail/res/layout/shoplist.xml | 8 +- AndorsTrail/res/layout/skill_info_view.xml | 6 +- .../res/layout/startscreen_mainmenu.xml | 14 +- .../res/layout/startscreen_newgame.xml | 81 +++--- AndorsTrail/res/layout/statusview.xml | 2 +- AndorsTrail/res/layout/tabbedlayout.xml | 2 +- AndorsTrail/res/layout/tabindicator.xml | 4 +- .../res/values-v10/ui_listviewstyle.xml | 2 +- AndorsTrail/res/values-v14/ui_styles.xml | 53 +--- AndorsTrail/res/values-v14/ui_theme.xml | 13 + AndorsTrail/res/values-v17/ui_styles.xml | 2 +- AndorsTrail/res/values/attrs.xml | 14 +- AndorsTrail/res/values/ui_colors.xml | 47 +--- AndorsTrail/res/values/ui_listviewstyle.xml | 2 +- AndorsTrail/res/values/ui_styles.xml | 243 ++++++++---------- AndorsTrail/res/values/ui_theme.xml | 202 +++++++++++++++ AndorsTrail/res/values/ui_theme_attrs.xml | 76 ++++++ .../src/com/gpl/rpg/AndorsTrail/Dialogs.java | 2 +- .../activity/ConversationActivity.java | 16 +- .../resource/tiles/TileManager.java | 4 +- .../AndorsTrail/view/CustomDialogFactory.java | 6 +- .../DisplayActiveActorConditionIcons.java | 7 - 48 files changed, 590 insertions(+), 437 deletions(-) delete mode 100644 AndorsTrail/res/color/ui_blue_textbutton_textcolor.xml create mode 100644 AndorsTrail/res/color/ui_theme_textbutton_textcolor.xml create mode 100644 AndorsTrail/res/values-v14/ui_theme.xml create mode 100644 AndorsTrail/res/values/ui_theme.xml create mode 100644 AndorsTrail/res/values/ui_theme_attrs.xml diff --git a/AndorsTrail/AndroidManifest.xml b/AndorsTrail/AndroidManifest.xml index 0623cf4b7..fcb1c0ab2 100644 --- a/AndorsTrail/AndroidManifest.xml +++ b/AndorsTrail/AndroidManifest.xml @@ -30,7 +30,7 @@ android:icon="@drawable/icon" android:description="@string/app_description" android:allowBackup="true" - android:theme="@style/AndorsTrailStyle" + android:theme="@style/AndorsTrailTheme_Blue" > - - - - - + + + + + - - - - + + + + diff --git a/AndorsTrail/res/color/ui_blue_textbutton_textcolor.xml b/AndorsTrail/res/color/ui_blue_textbutton_textcolor.xml deleted file mode 100644 index 3e34505be..000000000 --- a/AndorsTrail/res/color/ui_blue_textbutton_textcolor.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/AndorsTrail/res/color/ui_theme_textbutton_textcolor.xml b/AndorsTrail/res/color/ui_theme_textbutton_textcolor.xml new file mode 100644 index 000000000..7df36729c --- /dev/null +++ b/AndorsTrail/res/color/ui_theme_textbutton_textcolor.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/AndorsTrail/res/drawable/ui_blue_radiobutton.xml b/AndorsTrail/res/drawable/ui_blue_radiobutton.xml index 0e57551cf..cfeba3ded 100644 --- a/AndorsTrail/res/drawable/ui_blue_radiobutton.xml +++ b/AndorsTrail/res/drawable/ui_blue_radiobutton.xml @@ -1,11 +1,6 @@ - + - - - - - @@ -81,7 +81,7 @@ android:background="@android:color/transparent" /> diff --git a/AndorsTrail/res/layout/bulkselection.xml b/AndorsTrail/res/layout/bulkselection.xml index 456d1e8c1..5a05c6269 100644 --- a/AndorsTrail/res/layout/bulkselection.xml +++ b/AndorsTrail/res/layout/bulkselection.xml @@ -11,12 +11,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" - android:background="@drawable/ui_blue_richframe" + android:background="?attr/ui_theme_richframe_bitmap" android:drawableLeft="@drawable/equip_weapon" android:text="@string/inventory_info" /> @@ -115,7 +115,7 @@ android:background="@android:color/transparent" /> diff --git a/AndorsTrail/res/layout/combatview.xml b/AndorsTrail/res/layout/combatview.xml index 8c85522f9..19b0ea04d 100644 --- a/AndorsTrail/res/layout/combatview.xml +++ b/AndorsTrail/res/layout/combatview.xml @@ -12,7 +12,7 @@