summaryrefslogtreecommitdiffstats
path: root/include/UserSettingsPage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/UserSettingsPage.h')
-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;
};