Add PageIndicator widget to reduce code duplication (#1218)
* Move PageIndicator widget to its own files to reduce code duplication * Use uint8_t in PageIndicator
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
#include "components/settings/Settings.h"
|
||||
#include "components/datetime/DateTimeController.h"
|
||||
#include "components/battery/BatteryController.h"
|
||||
#include <displayapp/screens/BatteryIcon.h>
|
||||
#include "displayapp/screens/BatteryIcon.h"
|
||||
#include "displayapp/widgets/PageIndicator.h"
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Applications {
|
||||
@@ -41,12 +42,10 @@ namespace Pinetime {
|
||||
lv_task_t* taskUpdate;
|
||||
|
||||
lv_obj_t* label_time;
|
||||
lv_point_t pageIndicatorBasePoints[2];
|
||||
lv_point_t pageIndicatorPoints[2];
|
||||
lv_obj_t* pageIndicatorBase;
|
||||
lv_obj_t* pageIndicator;
|
||||
lv_obj_t* btnm1;
|
||||
|
||||
Widgets::PageIndicator pageIndicator;
|
||||
|
||||
BatteryIcon batteryIcon;
|
||||
|
||||
const char* btnmMap[8];
|
||||
|
Reference in New Issue
Block a user