InfiniTime/src/displayapp/screens/settings/SettingTimeFormat.h

30 lines
690 B
C
Raw Normal View History

#pragma once
#include "components/settings/Settings.h"
#include "displayapp/screens/Screen.h"
2021-09-20 08:13:46 -04:00
#include <array>
#include <cstdint>
#include <lvgl/lvgl.h>
namespace Pinetime {
namespace Applications {
namespace Screens {
class SettingTimeFormat : public Screen {
2021-04-24 05:00:45 -04:00
public:
SettingTimeFormat(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
~SettingTimeFormat() override;
void UpdateSelected(lv_obj_t* object, lv_event_t event);
2021-04-24 05:00:45 -04:00
private:
2021-09-20 08:13:46 -04:00
const std::array<std::string, 2> options = {" 12-hour", " 24-hour"};
Controllers::Settings& settingsController;
lv_obj_t* cbOption[2];
};
}
}
}