summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/FlashLight.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/FlashLight.h')
-rw-r--r--src/displayapp/screens/FlashLight.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/displayapp/screens/FlashLight.h b/src/displayapp/screens/FlashLight.h
deleted file mode 100644
index e91a103..0000000
--- a/src/displayapp/screens/FlashLight.h
+++ /dev/null
@@ -1,38 +0,0 @@
-#pragma once
-
-#include "displayapp/screens/Screen.h"
-#include "components/brightness/BrightnessController.h"
-#include "systemtask/SystemTask.h"
-#include <cstdint>
-#include <lvgl/lvgl.h>
-
-namespace Pinetime {
-
- namespace Applications {
- namespace Screens {
-
- class FlashLight : public Screen {
- public:
- FlashLight(DisplayApp* app, System::SystemTask& systemTask, Controllers::BrightnessController& brightness);
- ~FlashLight() override;
-
- bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override;
- void OnClickEvent(lv_obj_t* obj, lv_event_t event);
-
- private:
- void SetIndicators();
- void SetColors();
-
- Pinetime::System::SystemTask& systemTask;
- Controllers::BrightnessController& brightnessController;
-
- Controllers::BrightnessController::Levels brightnessLevel;
-
- lv_obj_t* flashLight;
- lv_obj_t* backgroundAction;
- lv_obj_t* indicators[3];
- bool isOn = false;
- };
- }
- }
-}