diff options
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); |