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/buyselldialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/buyselldialog.cpp') diff --git a/src/gui/buyselldialog.cpp b/src/gui/buyselldialog.cpp index 429f62a85..1afcf96a1 100644 --- a/src/gui/buyselldialog.cpp +++ b/src/gui/buyselldialog.cpp @@ -64,7 +64,8 @@ void BuySellDialog::init() { N_("Buy"), N_("Sell"), N_("Cancel"), nullptr }; - int x = 10, y = 10; + const int buttonPadding = getOption("buttonpadding", 10); + int x = buttonPadding, y = buttonPadding; for (const char **curBtn = buttonNames; *curBtn; curBtn++) { @@ -73,7 +74,7 @@ void BuySellDialog::init() mBuyButton = btn; // For focus request btn->setPosition(x, y); add(btn); - x += btn->getWidth() + 10; + x += btn->getWidth() + buttonPadding; } mBuyButton->requestFocus(); -- cgit v1.2.3-60-g2f50