2021-04-03 22:08:51 -04:00
|
|
|
#pragma once
|
|
|
|
|
2021-09-20 08:13:46 -04:00
|
|
|
#include <array>
|
|
|
|
#include <cstdint>
|
|
|
|
#include <lvgl/lvgl.h>
|
2021-04-03 22:08:51 -04:00
|
|
|
|
2021-12-03 14:39:18 -05:00
|
|
|
#include "components/settings/Settings.h"
|
|
|
|
#include "displayapp/screens/Screen.h"
|
|
|
|
|
2021-04-03 22:08:51 -04:00
|
|
|
namespace Pinetime {
|
|
|
|
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
|
|
|
|
2021-04-18 13:28:14 -04:00
|
|
|
class SettingWatchFace : public Screen {
|
2021-04-24 05:00:45 -04:00
|
|
|
public:
|
2021-04-18 13:28:14 -04:00
|
|
|
SettingWatchFace(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
|
|
|
|
~SettingWatchFace() override;
|
2021-04-03 22:08:51 -04:00
|
|
|
|
2021-04-18 13:28:14 -04:00
|
|
|
void UpdateSelected(lv_obj_t* object, lv_event_t event);
|
2021-04-03 22:08:51 -04:00
|
|
|
|
2021-04-24 05:00:45 -04:00
|
|
|
private:
|
2022-02-20 07:20:43 -05:00
|
|
|
static constexpr std::array<const char*, 4> options = {" Digital face", " Analog face", " PineTimeStyle", " Terminal"};
|
2021-04-18 13:28:14 -04:00
|
|
|
Controllers::Settings& settingsController;
|
2021-09-20 08:13:46 -04:00
|
|
|
|
2021-09-22 19:27:09 -04:00
|
|
|
lv_obj_t* cbOption[options.size()];
|
2021-04-03 22:08:51 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|