InfiniTime/src/displayapp/screens/settings/QuickSettings.h
Joaquim 1d3742e14f Big UI and navigation Rewrite
new navigation
add some color to the apps
redesign menus
new settings menu
new quick settings
code clean up
size reduction by converting navigation images to font
and more...
2021-04-04 03:08:51 +01:00

58 lines
1.5 KiB
C++

#pragma once
#include <cstdint>
#include <FreeRTOS.h>
#include <timers.h>
#include "displayapp/screens/Screen.h"
#include <lvgl/lvgl.h>
#include "components/datetime/DateTimeController.h"
#include "components/brightness/BrightnessController.h"
#include "components/settings/Settings.h"
#include "components/battery/BatteryController.h"
namespace Pinetime {
namespace Applications {
namespace Screens {
class QuickSettings : public Screen{
public:
QuickSettings(DisplayApp* app,
Pinetime::Controllers::Battery& batteryController,
Controllers::DateTime& dateTimeController,
Controllers::BrightnessController& brightness,
Pinetime::Controllers::Settings &settingsController);
~QuickSettings() override;
bool Refresh() override;
bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override;
void OnButtonEvent(lv_obj_t *object, lv_event_t event);
void UpdateScreen();
private:
Pinetime::Controllers::Battery& batteryController;
Controllers::DateTime& dateTimeController;
Controllers::BrightnessController& brightness;
Controllers::Settings& settingsController;
lv_task_t* taskUpdate;
lv_obj_t * batteryIcon;
lv_obj_t * label_time;
lv_obj_t * btn1;
lv_obj_t * btn1_lvl;
lv_obj_t * btn2;
lv_obj_t * btn3;
lv_obj_t * btn3_lvl;
lv_obj_t * btn4;
};
}
}
}