diff options
Diffstat (limited to 'src/gui/buyselldialog.cpp')
-rw-r--r-- | src/gui/buyselldialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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(); |