summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-09 22:04:40 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-09 22:04:40 +0200
commite40dab9f9895c5457d4a45473007fc87173b7bc9 (patch)
treea8df945406f54a4554f526690e2458dd53f311c2 /include
parentb586a2329cfd2b31e1821a80186a062828146f67 (diff)
Improve settings menu layout
Diffstat (limited to 'include')
-rw-r--r--include/UserSettingsPage.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/UserSettingsPage.h b/include/UserSettingsPage.h
index 6f6da2c5..d8160cbe 100644
--- a/include/UserSettingsPage.h
+++ b/include/UserSettingsPage.h
@@ -25,8 +25,9 @@
class Toggle;
-constexpr int OptionMargin = 6;
-constexpr int LayoutSideMargin = 300;
+constexpr int OptionMargin = 6;
+constexpr int LayoutTopMargin = 50;
+constexpr int LayoutBottomMargin = LayoutTopMargin;
class UserSettings
{
@@ -63,6 +64,7 @@ public:
protected:
void showEvent(QShowEvent *event) override;
+ void resizeEvent(QResizeEvent *event) override;
signals:
void moveBack();
@@ -71,6 +73,7 @@ signals:
private:
// Layouts
QVBoxLayout *topLayout_;
+ QVBoxLayout *mainLayout_;
QHBoxLayout *topBarLayout_;
// Shared settings object.
@@ -78,4 +81,6 @@ private:
Toggle *trayToggle_;
QComboBox *themeCombo_;
+
+ int sideMargin_ = 0;
};