summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/settings/SettingTimeFormat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/settings/SettingTimeFormat.h')
-rw-r--r--src/displayapp/screens/settings/SettingTimeFormat.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/displayapp/screens/settings/SettingTimeFormat.h b/src/displayapp/screens/settings/SettingTimeFormat.h
index 426dc197..de37f43e 100644
--- a/src/displayapp/screens/settings/SettingTimeFormat.h
+++ b/src/displayapp/screens/settings/SettingTimeFormat.h
@@ -6,6 +6,7 @@
#include "components/settings/Settings.h"
#include "displayapp/screens/Screen.h"
+#include "displayapp/screens/CheckboxList.h"
namespace Pinetime {
@@ -17,20 +18,8 @@ namespace Pinetime {
SettingTimeFormat(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
~SettingTimeFormat() override;
- void UpdateSelected(lv_obj_t* object, lv_event_t event);
-
private:
- struct Option {
- Controllers::Settings::ClockType clockType;
- const char* name;
- };
-
- static constexpr std::array<Option, 2> options = {{
- {Controllers::Settings::ClockType::H12, "12-hour"},
- {Controllers::Settings::ClockType::H24, "24-hour"},
- }};
- Controllers::Settings& settingsController;
- lv_obj_t* cbOption[options.size()];
+ CheckboxList checkboxList;
};
}
}