From 19f2126df4f702e8d649357e5f0f5f5cf220b1a0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 28 Jul 2016 21:21:22 +0200 Subject: Corrected ui widget spacing. --- src/client/playersettingsmenu.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/playersettingsmenu.cc b/src/client/playersettingsmenu.cc index ca7fadf..b8992cb 100644 --- a/src/client/playersettingsmenu.cc +++ b/src/client/playersettingsmenu.cc @@ -216,14 +216,14 @@ void PlayerSettingsMenu::resize() // resize primary color label _primarycolorlabel->set_size(ui::UI::elementsize.width(), _primarycolorlabel->font()->height() + margin); - _primarycolorlabel->set_location(padding, _playernamelabel->bottom()); + _primarycolorlabel->set_location(padding, _playernamelabel->bottom() + margin); // resize primary color picker _primarycolorpicker->set_size(_playernameinput->width(), ui::UI::elementsize.height() * 4.0f); _primarycolorpicker->set_location(_primarycolorlabel->right() + padding, _primarycolorlabel->top()); // resize secondary color label _secondarycolorlabel->set_size(ui::UI::elementsize.width(), _primarycolorlabel->font()->height() + margin); - _secondarycolorlabel->set_location(padding,_primarycolorpicker->bottom()); + _secondarycolorlabel->set_location(padding,_primarycolorpicker->bottom() + margin); // resize secondary color picker _secondarycolorpicker->set_size(_playernameinput->width(), ui::UI::elementsize.height() * 4.0f); _secondarycolorpicker->set_location(_secondarycolorlabel->right() + padding, _secondarycolorlabel->top()); -- cgit v1.2.3