diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-05 03:13:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-05 03:13:43 +0300 |
commit | e3b9d60938b1299f2f66e68ff291060654c58d66 (patch) | |
tree | 28425cf579903d6735faa801a6968b56abdc7230 /src/gui/confirmdialog.cpp | |
parent | 10c8e7da87de2219fad19fd899e97257164e4830 (diff) | |
download | manaplus-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.gz manaplus-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.bz2 manaplus-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.xz manaplus-e3b9d60938b1299f2f66e68ff291060654c58d66.zip |
Move some hardcoded paddings to themes.
Diffstat (limited to 'src/gui/confirmdialog.cpp')
-rw-r--r-- | src/gui/confirmdialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/confirmdialog.cpp b/src/gui/confirmdialog.cpp index a2fb7b6cc..e4531ac3b 100644 --- a/src/gui/confirmdialog.cpp +++ b/src/gui/confirmdialog.cpp @@ -73,14 +73,14 @@ ConfirmDialog::ConfirmDialog(const std::string &title, const std::string &msg, // 8 is the padding that GUIChan adds to button widgets // (top and bottom combined) - yesButton->setPosition((width - inWidth) / 2, height + 8); + const int buttonPadding = getOption("buttonPadding", 8); + yesButton->setPosition((width - inWidth) / 2, height + buttonPadding); noButton->setPosition(yesButton->getX() + yesButton->getWidth() - + (2 * getPadding()), - height + 8); + + (2 * getPadding()), height + buttonPadding); if (ignoreButton) { ignoreButton->setPosition(noButton->getX() + noButton->getWidth() - + (2 * getPadding()), height + 8); + + (2 * getPadding()), height + buttonPadding); } add(mTextBox); |