summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-05 03:13:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-05 03:13:43 +0300
commite3b9d60938b1299f2f66e68ff291060654c58d66 (patch)
tree28425cf579903d6735faa801a6968b56abdc7230 /src/gui/setup.cpp
parent10c8e7da87de2219fad19fd899e97257164e4830 (diff)
downloadmv-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.gz
mv-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.bz2
mv-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.xz
mv-e3b9d60938b1299f2f66e68ff291060654c58d66.zip
Move some hardcoded paddings to themes.
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index b0d2f4ec0..8fbe012e6 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -76,11 +76,12 @@ Setup::Setup():
nullptr
};
int x = width;
+ const int buttonPadding = getOption("buttonPadding", 5);
for (const char **curBtn = buttonNames; *curBtn; ++ curBtn)
{
Button *btn = new Button(gettext(*curBtn), *curBtn, this);
- x -= btn->getWidth() + 5;
- btn->setPosition(x, height - btn->getHeight() - 5);
+ x -= btn->getWidth() + buttonPadding;
+ btn->setPosition(x, height - btn->getHeight() - buttonPadding);
add(btn);
// Store this button, as it needs to be enabled/disabled