aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/settings/SettingSetDate.h
diff options
context:
space:
mode:
authormashuptwice <info@mashup-tech.de>2022-08-11 01:43:19 +0200
committerGitHub <noreply@github.com>2022-08-11 01:43:19 +0200
commita86668b6b717fb618cc4cc7167e49e3339748417 (patch)
tree32364770e345b0f272e72dbd772826580923aa41 /src/displayapp/screens/settings/SettingSetDate.h
parentd00a5d1e373161279676f48cf5bd67138dc85901 (diff)
parenteb487c71be22bd7568a538bf30a1f0dcd4ed3a8b (diff)
Merge branch 'InfiniTimeOrg:develop' into workflow-ignore-md
Diffstat (limited to 'src/displayapp/screens/settings/SettingSetDate.h')
-rw-r--r--src/displayapp/screens/settings/SettingSetDate.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/displayapp/screens/settings/SettingSetDate.h b/src/displayapp/screens/settings/SettingSetDate.h
index a1795942..af0d654e 100644
--- a/src/displayapp/screens/settings/SettingSetDate.h
+++ b/src/displayapp/screens/settings/SettingSetDate.h
@@ -4,6 +4,7 @@
#include <lvgl/lvgl.h>
#include "components/datetime/DateTimeController.h"
#include "displayapp/screens/Screen.h"
+#include "displayapp/widgets/Counter.h"
namespace Pinetime {
namespace Applications {
@@ -13,28 +14,17 @@ namespace Pinetime {
SettingSetDate(DisplayApp* app, Pinetime::Controllers::DateTime& dateTimeController);
~SettingSetDate() override;
- void HandleButtonPress(lv_obj_t* object, lv_event_t event);
+ void HandleButtonPress();
+ void CheckDay();
private:
Controllers::DateTime& dateTimeController;
- int dayValue;
- int monthValue;
- int yearValue;
- lv_obj_t* lblDay;
- lv_obj_t* lblMonth;
- lv_obj_t* lblYear;
- lv_obj_t* btnDayPlus;
- lv_obj_t* btnDayMinus;
- lv_obj_t* btnMonthPlus;
- lv_obj_t* btnMonthMinus;
- lv_obj_t* btnYearPlus;
- lv_obj_t* btnYearMinus;
lv_obj_t* btnSetTime;
- int MaximumDayOfMonth() const;
- void CheckDay();
- void UpdateMonthLabel();
+ Widgets::Counter dayCounter = Widgets::Counter(1, 31, jetbrains_mono_bold_20);
+ Widgets::Counter monthCounter = Widgets::Counter(1, 12, jetbrains_mono_bold_20);
+ Widgets::Counter yearCounter = Widgets::Counter(1970, 9999, jetbrains_mono_bold_20);
};
}
}