From eb0af22ecf66957b9341521990c49a6d1d5d70e3 Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Tue, 11 Oct 2022 21:36:31 +0200 Subject: Watch face settings : disable watch faces that are not available (external resources are not installed). --- src/displayapp/screens/CheckboxList.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/displayapp/screens/CheckboxList.h') diff --git a/src/displayapp/screens/CheckboxList.h b/src/displayapp/screens/CheckboxList.h index f9c3bae0..e9104bfb 100644 --- a/src/displayapp/screens/CheckboxList.h +++ b/src/displayapp/screens/CheckboxList.h @@ -14,6 +14,11 @@ namespace Pinetime { class CheckboxList : public Screen { public: static constexpr size_t MaxItems = 4; + struct Item { + const char* name; + bool enabled; + }; + CheckboxList(const uint8_t screenID, const uint8_t numScreens, DisplayApp* app, @@ -21,14 +26,14 @@ namespace Pinetime { const char* optionsSymbol, uint32_t originalValue, std::function OnValueChanged, - std::array options); + std::array options); ~CheckboxList() override; void UpdateSelected(lv_obj_t* object, lv_event_t event); private: const uint8_t screenID; std::function OnValueChanged; - std::array options; + std::array options; std::array cbOption; std::array pageIndicatorBasePoints; std::array pageIndicatorPoints; -- cgit v1.2.3