summaryrefslogtreecommitdiff
path: root/src/gui/theme.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-14 01:36:25 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-14 13:30:24 +0300
commitc23959e3c40e97f9c1aeb9eabc52131b6fa68f2a (patch)
treef9929a081b3479bcc1f515aac0a11bbc3cbc111a /src/gui/theme.h
parentccf90e41053bf1a327939cad1082be05c15a8cde (diff)
downloadplus-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.gz
plus-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.bz2
plus-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.xz
plus-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.h4
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];