summaryrefslogtreecommitdiff
path: root/src/displayapp/widgets/DotIndicator.h
diff options
context:
space:
mode:
authorJohn Quigley <Elements6007@gmail.com>2023-01-14 14:50:21 -0500
committerGitHub <noreply@github.com>2023-01-14 21:50:21 +0200
commita7f8b59bfb1641dea7f30a267c6bf7e882d9edbf (patch)
treeaa0a46d0da410c83165014af1007acf7be349530 /src/displayapp/widgets/DotIndicator.h
parent6f6ea68acaf2d72dcef479dce429df214b51651c (diff)
Combine Date and Time Settings (#1465)
Replace separate SettingSetDate and SettingSetTime with a combined screenlist. Add DotIndicators. Similar to PageIndicator, but for use when separating screens instead of pages of a list. Co-authored-by: Riku Isokoski <riksu9000@gmail.com>
Diffstat (limited to 'src/displayapp/widgets/DotIndicator.h')
-rw-r--r--src/displayapp/widgets/DotIndicator.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/displayapp/widgets/DotIndicator.h b/src/displayapp/widgets/DotIndicator.h
new file mode 100644
index 00000000..49cdca26
--- /dev/null
+++ b/src/displayapp/widgets/DotIndicator.h
@@ -0,0 +1,18 @@
+#pragma once
+#include <lvgl/lvgl.h>
+
+namespace Pinetime {
+ namespace Applications {
+ namespace Widgets {
+ class DotIndicator {
+ public:
+ DotIndicator(uint8_t nCurrentScreen, uint8_t nScreens);
+ void Create();
+
+ private:
+ uint8_t nCurrentScreen;
+ uint8_t nScreens;
+ };
+ }
+ }
+}