diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-14 01:36:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-14 13:30:24 +0300 |
commit | c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a (patch) | |
tree | f9929a081b3479bcc1f515aac0a11bbc3cbc111a /src/gui/theme.h | |
parent | ccf90e41053bf1a327939cad1082be05c15a8cde (diff) | |
download | manaverse-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.gz manaverse-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.bz2 manaverse-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.xz manaverse-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.zip |
Add new parameters to buttons theming.
New parameters:
padding - padding over button text.
spacing - space between text and image.
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r-- | src/gui/theme.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/theme.h b/src/gui/theme.h index cbda2ee4d..4d99649da 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -68,7 +68,7 @@ class Skin final /** * Returns the background skin. */ - const ImageRect &getBorder() const + ImageRect &getBorder() const { return *mBorder; } /** @@ -104,7 +104,7 @@ class Skin final int getTitlePadding() const { return mTitlePadding; } - int getOption(std::string name) + int getOption(const std::string &name) const { if (mOptions->find(name) != mOptions->end()) return (*mOptions)[name]; |