summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/settings/SettingTimeFormat.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-09-20 12:13:46 (GMT)
committerJF <JF002@users.noreply.github.com>2021-12-09 20:32:07 (GMT)
commit9ffd28f735fd2a184f03b2ce4a46a24b7de10ba4 (patch)
tree20ffc01294bc774b2169f27a45cb5c5dc4973afd /src/displayapp/screens/settings/SettingTimeFormat.h
parent589733d11e623ea66ee0bba231f53c67ce04ce7a (diff)
Style checkboxes as radio buttons
Diffstat (limited to 'src/displayapp/screens/settings/SettingTimeFormat.h')
-rw-r--r--src/displayapp/screens/settings/SettingTimeFormat.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/displayapp/screens/settings/SettingTimeFormat.h b/src/displayapp/screens/settings/SettingTimeFormat.h
index eac4bdc..0113e35 100644
--- a/src/displayapp/screens/settings/SettingTimeFormat.h
+++ b/src/displayapp/screens/settings/SettingTimeFormat.h
@@ -1,9 +1,10 @@
#pragma once
-#include <cstdint>
-#include <lvgl/lvgl.h>
#include "components/settings/Settings.h"
#include "displayapp/screens/Screen.h"
+#include <array>
+#include <cstdint>
+#include <lvgl/lvgl.h>
namespace Pinetime {
@@ -18,8 +19,9 @@ namespace Pinetime {
void UpdateSelected(lv_obj_t* object, lv_event_t event);
private:
+ const std::array<std::string, 2> options = {" 12-hour", " 24-hour"};
+
Controllers::Settings& settingsController;
- uint8_t optionsTotal;
lv_obj_t* cbOption[2];
};
}