From e3b9d60938b1299f2f66e68ff291060654c58d66 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Aug 2012 03:13:43 +0300 Subject: Move some hardcoded paddings to themes. --- src/gui/confirmdialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/confirmdialog.cpp') 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); -- cgit v1.2.3-70-g09d2