2021-04-04 02:08:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "components/settings/Settings.h"
|
|
|
|
#include "displayapp/screens/Screen.h"
|
2021-09-20 12:13:46 +00:00
|
|
|
#include <array>
|
|
|
|
#include <cstdint>
|
|
|
|
#include <lvgl/lvgl.h>
|
2021-04-04 02:08:51 +00:00
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
|
|
|
|
2021-04-18 17:28:14 +00:00
|
|
|
class SettingDisplay : public Screen {
|
2021-04-24 09:00:45 +00:00
|
|
|
public:
|
2021-04-18 17:28:14 +00:00
|
|
|
SettingDisplay(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
|
|
|
|
~SettingDisplay() override;
|
2021-04-04 02:08:51 +00:00
|
|
|
|
2021-04-18 17:28:14 +00:00
|
|
|
void UpdateSelected(lv_obj_t* object, lv_event_t event);
|
2021-04-04 02:08:51 +00:00
|
|
|
|
2021-04-24 09:00:45 +00:00
|
|
|
private:
|
2021-09-20 12:13:46 +00:00
|
|
|
const std::array<uint16_t, 4> options = {5000, 15000, 20000, 30000};
|
2021-04-18 17:28:14 +00:00
|
|
|
Controllers::Settings& settingsController;
|
|
|
|
lv_obj_t* cbOption[4];
|
2021-04-04 02:08:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|