diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-08 01:03:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-08 01:03:20 +0300 |
commit | bfab477aead2b4376e9caa193dca2c62c2ff26f9 (patch) | |
tree | e0fe0fb39d0ad476d7109ecafb452de05c0a1566 /src/gui/theme.h | |
parent | 9e65d853ef4cbebb9899dabe0233ad83a0b9e97a (diff) | |
download | manaplus-bfab477aead2b4376e9caa193dca2c62c2ff26f9.tar.gz manaplus-bfab477aead2b4376e9caa193dca2c62c2ff26f9.tar.bz2 manaplus-bfab477aead2b4376e9caa193dca2c62c2ff26f9.tar.xz manaplus-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.h | 6 |
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 |