aboutsummaryrefslogtreecommitdiff
path: root/include/gui/GlobalSettingsPage.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-09 16:29:36 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-09 16:29:36 +0100
commitf38661593795e51e45e2dc2ead8a7bf897d226f6 (patch)
treeb0fa0fbf02ec8fc0c624f1de4197350571677100 /include/gui/GlobalSettingsPage.hpp
parentf3565fdd77fb480575feec5de252466b093daf86 (diff)
Start on global settings, add tint color setting
Diffstat (limited to 'include/gui/GlobalSettingsPage.hpp')
-rw-r--r--include/gui/GlobalSettingsPage.hpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/gui/GlobalSettingsPage.hpp b/include/gui/GlobalSettingsPage.hpp
new file mode 100644
index 0000000..cd4a50c
--- /dev/null
+++ b/include/gui/GlobalSettingsPage.hpp
@@ -0,0 +1,34 @@
+#pragma once
+
+#include "StaticPage.hpp"
+#include "../GsrInfo.hpp"
+#include "../Config.hpp"
+
+namespace gsr {
+ class GsrPage;
+ class PageStack;
+ class ScrollablePage;
+ class Subsection;
+ class RadioButton;
+
+ class GlobalSettingsPage : public StaticPage {
+ public:
+ GlobalSettingsPage(const GsrInfo *gsr_info, Config &config, PageStack *page_stack);
+ GlobalSettingsPage(const GlobalSettingsPage&) = delete;
+ GlobalSettingsPage& operator=(const GlobalSettingsPage&) = delete;
+
+ void load();
+ void save();
+ void on_navigate_away_from_page() override;
+ private:
+ std::unique_ptr<Subsection> create_appearance_subsection(ScrollablePage *parent_page);
+ void add_widgets();
+ private:
+ Config &config;
+ const GsrInfo *gsr_info = nullptr;
+
+ GsrPage *content_page_ptr = nullptr;
+ PageStack *page_stack = nullptr;
+ RadioButton *tint_color_radio_button_ptr = nullptr;
+ };
+} \ No newline at end of file