summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-09 14:48:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-09 14:50:43 +0300
commit1a341ad301c6fb8f2453b331efa20dbe5f70e49f (patch)
tree993aed24393c78811f7556023c429411ce6c8be8
parenta45fb0b0677bb8b3700631d1edf9af855da3486e (diff)
downloadmanaverse-1a341ad301c6fb8f2453b331efa20dbe5f70e49f.tar.gz
manaverse-1a341ad301c6fb8f2453b331efa20dbe5f70e49f.tar.bz2
manaverse-1a341ad301c6fb8f2453b331efa20dbe5f70e49f.tar.xz
manaverse-1a341ad301c6fb8f2453b331efa20dbe5f70e49f.zip
add separate theme file for browserbox in who is online window.
New theme file: onlinebrowserbox.xml
-rw-r--r--data/graphics/gui/CMakeLists.txt1
-rw-r--r--data/graphics/gui/Makefile.am1
-rw-r--r--data/graphics/gui/onlinebrowserbox.xml8
-rw-r--r--data/themes/jewelry/CMakeLists.txt1
-rw-r--r--data/themes/jewelry/Makefile.am1
-rw-r--r--data/themes/jewelry/onlinebrowserbox.xml8
-rw-r--r--src/gui/windows/whoisonline.cpp2
7 files changed, 21 insertions, 1 deletions
diff --git a/data/graphics/gui/CMakeLists.txt b/data/graphics/gui/CMakeLists.txt
index de2a9b109..d14f544f3 100644
--- a/data/graphics/gui/CMakeLists.txt
+++ b/data/graphics/gui/CMakeLists.txt
@@ -41,6 +41,7 @@ SET (FILES
mouse.png
npc.xml
ok.xml
+ onlinebrowserbox.xml
outfits.xml
playerbox.xml
playerboxselected.xml
diff --git a/data/graphics/gui/Makefile.am b/data/graphics/gui/Makefile.am
index 0b82339be..1e2315d09 100644
--- a/data/graphics/gui/Makefile.am
+++ b/data/graphics/gui/Makefile.am
@@ -44,6 +44,7 @@ gui_DATA = \
mouse.png \
npc.xml \
ok.xml \
+ onlinebrowserbox.xml \
outfits.xml \
playerbox.xml \
playerboxselected.xml \
diff --git a/data/graphics/gui/onlinebrowserbox.xml b/data/graphics/gui/onlinebrowserbox.xml
new file mode 100644
index 000000000..621be46f3
--- /dev/null
+++ b/data/graphics/gui/onlinebrowserbox.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<skinset name="Default" image="window.png">
+ <widget type="Window">
+ <option name="padding" value="1" />
+ <option name="newLinePadding" value="15" />
+ <option name="itemPadding" value="0" />
+ </widget>
+</skinset>
diff --git a/data/themes/jewelry/CMakeLists.txt b/data/themes/jewelry/CMakeLists.txt
index 89f3e31ea..1ddffb8f8 100644
--- a/data/themes/jewelry/CMakeLists.txt
+++ b/data/themes/jewelry/CMakeLists.txt
@@ -56,6 +56,7 @@ SET (FILES
mouse.png
npc.xml
ok.xml
+ onlinebrowserbox.xml
outfits.xml
playerbox.xml
playerboxselected.xml
diff --git a/data/themes/jewelry/Makefile.am b/data/themes/jewelry/Makefile.am
index 09b90e1f5..856c06d57 100644
--- a/data/themes/jewelry/Makefile.am
+++ b/data/themes/jewelry/Makefile.am
@@ -59,6 +59,7 @@ gui_DATA = \
mouse.png \
npc.xml \
ok.xml \
+ onlinebrowserbox.xml \
outfits.xml \
playerbox.xml \
playerboxselected.xml \
diff --git a/data/themes/jewelry/onlinebrowserbox.xml b/data/themes/jewelry/onlinebrowserbox.xml
new file mode 100644
index 000000000..403dd839f
--- /dev/null
+++ b/data/themes/jewelry/onlinebrowserbox.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<skinset name="Default" image="window.png">
+ <widget type="Window">
+ <option name="padding" value="4" />
+ <option name="newLinePadding" value="15" />
+ <option name="itemPadding" value="0" />
+ </widget>
+</skinset>
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp
index edff9b406..e06788a38 100644
--- a/src/gui/windows/whoisonline.cpp
+++ b/src/gui/windows/whoisonline.cpp
@@ -86,7 +86,7 @@ WhoIsOnline::WhoIsOnline() :
mMemoryBuffer(nullptr),
mCurlError(new char[CURL_ERROR_SIZE]),
mBrowserBox(new BrowserBox(this, BrowserBox::AUTO_SIZE, true,
- "browserbox.xml")),
+ "onlinebrowserbox.xml")),
mScrollArea(new ScrollArea(mBrowserBox, false)),
mUpdateTimer(0),
mOnlinePlayers(),