From a45fb0b0677bb8b3700631d1edf9af855da3486e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 9 Oct 2013 14:31:20 +0300 Subject: add support for popup menu browserbox theming. New theme file: popupbrowserbox.xml --- data/graphics/gui/CMakeLists.txt | 1 + data/graphics/gui/Makefile.am | 1 + data/graphics/gui/popupbrowserbox.xml | 8 ++++++++ data/themes/jewelry/CMakeLists.txt | 4 ++++ data/themes/jewelry/Makefile.am | 4 ++++ data/themes/jewelry/browserbox.xml | 1 + data/themes/jewelry/popupbrowserbox.xml | 8 ++++++++ data/themes/jewelry/popupbrowserbox_high.xml | 8 ++++++++ data/themes/jewelry/popupbrowserbox_medium.xml | 8 ++++++++ data/themes/jewelry/popupbrowserbox_xhigh.xml | 8 ++++++++ data/themes/jewelry/popupbrowserbox_xxhigh.xml | 8 ++++++++ src/gui/popups/popupmenu.cpp | 2 +- 12 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 data/graphics/gui/popupbrowserbox.xml create mode 100644 data/themes/jewelry/popupbrowserbox.xml create mode 100644 data/themes/jewelry/popupbrowserbox_high.xml create mode 100644 data/themes/jewelry/popupbrowserbox_medium.xml create mode 100644 data/themes/jewelry/popupbrowserbox_xhigh.xml create mode 100644 data/themes/jewelry/popupbrowserbox_xxhigh.xml diff --git a/data/graphics/gui/CMakeLists.txt b/data/graphics/gui/CMakeLists.txt index afb414b4c..de2a9b109 100644 --- a/data/graphics/gui/CMakeLists.txt +++ b/data/graphics/gui/CMakeLists.txt @@ -45,6 +45,7 @@ SET (FILES playerbox.xml playerboxselected.xml popup.xml + popupbrowserbox.xml progress-indicator.png progressbar.xml quests.xml diff --git a/data/graphics/gui/Makefile.am b/data/graphics/gui/Makefile.am index c3c8f5990..0b82339be 100644 --- a/data/graphics/gui/Makefile.am +++ b/data/graphics/gui/Makefile.am @@ -48,6 +48,7 @@ gui_DATA = \ playerbox.xml \ playerboxselected.xml \ popup.xml \ + popupbrowserbox.xml \ progress-indicator.png \ progressbar.xml \ quests.xml \ diff --git a/data/graphics/gui/popupbrowserbox.xml b/data/graphics/gui/popupbrowserbox.xml new file mode 100644 index 000000000..0e61ff0e9 --- /dev/null +++ b/data/graphics/gui/popupbrowserbox.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/data/themes/jewelry/CMakeLists.txt b/data/themes/jewelry/CMakeLists.txt index 171d7b08e..89f3e31ea 100644 --- a/data/themes/jewelry/CMakeLists.txt +++ b/data/themes/jewelry/CMakeLists.txt @@ -63,6 +63,10 @@ SET (FILES popup_high.xml popup_xhigh.xml popup_xxhigh.xml + popupbrowserbox.xml + popupbrowserbox_high.xml + popupbrowserbox_xhigh.xml + popupbrowserbox_xxhigh.xml popuplist.xml popupmenu.xml popupmenu_high.xml diff --git a/data/themes/jewelry/Makefile.am b/data/themes/jewelry/Makefile.am index 0ba198b67..09b90e1f5 100644 --- a/data/themes/jewelry/Makefile.am +++ b/data/themes/jewelry/Makefile.am @@ -66,6 +66,10 @@ gui_DATA = \ popup_high.xml \ popup_xhigh.xml \ popup_xxhigh.xml \ + popupbrowserbox.xml \ + popupbrowserbox_high.xml \ + popupbrowserbox_xhigh.xml \ + popupbrowserbox_xxhigh.xml \ popuplist.xml \ popupmenu.xml \ popupmenu_high.xml \ diff --git a/data/themes/jewelry/browserbox.xml b/data/themes/jewelry/browserbox.xml index 35c99e548..403dd839f 100644 --- a/data/themes/jewelry/browserbox.xml +++ b/data/themes/jewelry/browserbox.xml @@ -3,5 +3,6 @@ diff --git a/data/themes/jewelry/popupbrowserbox.xml b/data/themes/jewelry/popupbrowserbox.xml new file mode 100644 index 000000000..d80203ea3 --- /dev/null +++ b/data/themes/jewelry/popupbrowserbox.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/data/themes/jewelry/popupbrowserbox_high.xml b/data/themes/jewelry/popupbrowserbox_high.xml new file mode 100644 index 000000000..44a2d3abf --- /dev/null +++ b/data/themes/jewelry/popupbrowserbox_high.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/data/themes/jewelry/popupbrowserbox_medium.xml b/data/themes/jewelry/popupbrowserbox_medium.xml new file mode 100644 index 000000000..0104efde0 --- /dev/null +++ b/data/themes/jewelry/popupbrowserbox_medium.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/data/themes/jewelry/popupbrowserbox_xhigh.xml b/data/themes/jewelry/popupbrowserbox_xhigh.xml new file mode 100644 index 000000000..44a2d3abf --- /dev/null +++ b/data/themes/jewelry/popupbrowserbox_xhigh.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/data/themes/jewelry/popupbrowserbox_xxhigh.xml b/data/themes/jewelry/popupbrowserbox_xxhigh.xml new file mode 100644 index 000000000..b2da8ede2 --- /dev/null +++ b/data/themes/jewelry/popupbrowserbox_xxhigh.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index a0096e17c..1674c5eeb 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -90,7 +90,7 @@ std::string tradePartnerName; PopupMenu::PopupMenu() : Popup("PopupMenu", "popupmenu.xml"), mBrowserBox(new BrowserBox(this, BrowserBox::AUTO_SIZE, true, - "browserbox.xml")), + "popupbrowserbox.xml")), mScrollArea(nullptr), mBeingId(0), mFloorItemId(0), -- cgit v1.2.3-70-g09d2