diff options
author | JF <JF002@users.noreply.github.com> | 2021-10-23 10:14:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 10:14:14 +0200 |
commit | 6c3f56bb5980dc3493685e4657bb25a18569f7a1 (patch) | |
tree | c8ee6a7a4808f30097a18504cbbb36432effc230 /src/displayapp/screens/FlashLight.h | |
parent | 062007a8c0f84be6590fd397bdb26ed9a8891d20 (diff) | |
parent | fd4fbfddb9508ea6ed9073523edd3a5f29e8195a (diff) |
Merge pull request #740 from Riksu9000/flashlight_brightness
Flashlight brightness control
Diffstat (limited to 'src/displayapp/screens/FlashLight.h')
-rw-r--r-- | src/displayapp/screens/FlashLight.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/displayapp/screens/FlashLight.h b/src/displayapp/screens/FlashLight.h index 7f5ca6c5..f2c65bbe 100644 --- a/src/displayapp/screens/FlashLight.h +++ b/src/displayapp/screens/FlashLight.h @@ -1,10 +1,10 @@ #pragma once -#include <cstdint> #include "Screen.h" -#include <lvgl/lvgl.h> -#include "systemtask/SystemTask.h" #include "components/brightness/BrightnessController.h" +#include "systemtask/SystemTask.h" +#include <cstdint> +#include <lvgl/lvgl.h> namespace Pinetime { @@ -20,12 +20,18 @@ namespace Pinetime { void OnClickEvent(lv_obj_t* obj, lv_event_t event); private: + void SetIndicators(); + void SetColors(); + Pinetime::System::SystemTask& systemTask; - Controllers::BrightnessController& brightness; + Controllers::BrightnessController& brightnessController; + + Controllers::BrightnessController::Levels brightnessLevel; lv_obj_t* flashLight; lv_obj_t* backgroundAction; - bool isOn = true; + lv_obj_t* indicators[3]; + bool isOn = false; }; } } |