diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-28 10:43:48 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-28 10:43:48 +1000 |
| commit | 6a47edcd35884095946f761fa3aa2367c7c26442 (patch) | |
| tree | 5b34e1bf14759dcc78b6611b1b6538dc03119860 /src/ui/include/screen_settings.hpp | |
| parent | f09ba5ffd53bf7d28e0dc516c00a8f69ca7efae9 (diff) | |
| download | tangara-fw-6a47edcd35884095946f761fa3aa2367c7c26442.tar.gz | |
Use databinding for the top bar. It's so nice now!
Diffstat (limited to 'src/ui/include/screen_settings.hpp')
| -rw-r--r-- | src/ui/include/screen_settings.hpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/ui/include/screen_settings.hpp b/src/ui/include/screen_settings.hpp index 4e1936a2..1a4672ed 100644 --- a/src/ui/include/screen_settings.hpp +++ b/src/ui/include/screen_settings.hpp @@ -18,6 +18,7 @@ #include "index.hpp" #include "lvgl.h" +#include "model_top_bar.hpp" #include "nvs.hpp" #include "screen.hpp" @@ -26,12 +27,12 @@ namespace screens { class Settings : public MenuScreen { public: - Settings(); + Settings(models::TopBar&); }; class Bluetooth : public MenuScreen { public: - Bluetooth(drivers::Bluetooth& bt, drivers::NvsStorage& nvs); + Bluetooth(models::TopBar&, drivers::Bluetooth& bt, drivers::NvsStorage& nvs); auto ChangeEnabledState(bool enabled) -> void; auto RefreshDevicesList() -> void; @@ -53,7 +54,7 @@ class Bluetooth : public MenuScreen { class Headphones : public MenuScreen { public: - Headphones(drivers::NvsStorage& nvs); + Headphones(models::TopBar&, drivers::NvsStorage& nvs); auto ChangeMaxVolume(uint8_t index) -> void; auto ChangeCustomVolume(int8_t diff) -> void; @@ -71,7 +72,9 @@ class Headphones : public MenuScreen { class Appearance : public MenuScreen { public: - Appearance(drivers::NvsStorage& nvs, drivers::Display& display); + Appearance(models::TopBar&, + drivers::NvsStorage& nvs, + drivers::Display& display); auto ChangeBrightness(uint_fast8_t) -> void; auto CommitBrightness() -> void; @@ -86,22 +89,22 @@ class Appearance : public MenuScreen { class InputMethod : public MenuScreen { public: - InputMethod(); + InputMethod(models::TopBar&); }; class Storage : public MenuScreen { public: - Storage(); + Storage(models::TopBar&); }; class FirmwareUpdate : public MenuScreen { public: - FirmwareUpdate(); + FirmwareUpdate(models::TopBar&); }; class About : public MenuScreen { public: - About(); + About(models::TopBar&); }; } // namespace screens |
