summaryrefslogtreecommitdiff
path: root/src/gui/theme.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-08 01:03:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-08 01:03:20 +0300
commitbfab477aead2b4376e9caa193dca2c62c2ff26f9 (patch)
treee0fe0fb39d0ad476d7109ecafb452de05c0a1566 /src/gui/theme.h
parent9e65d853ef4cbebb9899dabe0233ad83a0b9e97a (diff)
downloadmanaverse-bfab477aead2b4376e9caa193dca2c62c2ff26f9.tar.gz
manaverse-bfab477aead2b4376e9caa193dca2c62c2ff26f9.tar.bz2
manaverse-bfab477aead2b4376e9caa193dca2c62c2ff26f9.tar.xz
manaverse-bfab477aead2b4376e9caa193dca2c62c2ff26f9.zip
Add titlepadding option to theme file.
Now used only in shortcuts window without title bar.
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r--src/gui/theme.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/theme.h b/src/gui/theme.h
index c547e5351..8c5675454 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -44,7 +44,7 @@ class Skin
public:
Skin(ImageRect skin, Image *close, Image *stickyUp, Image *stickyDown,
const std::string &filePath, const std::string &name = "",
- int padding = 3);
+ int padding = 3, int titlePadding = 4);
~Skin();
@@ -98,6 +98,9 @@ class Skin
int getPadding() const
{ return mPadding; }
+ int getTitlePadding() const
+ { return mTitlePadding; }
+
int instances;
private:
@@ -108,6 +111,7 @@ class Skin
Image *mStickyImageUp; /**< Sticky Button Image */
Image *mStickyImageDown; /**< Sticky Button Image */
int mPadding;
+ int mTitlePadding;
};
class Theme : public Palette, public ConfigListener