aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/WatchFaceTerminal.h
diff options
context:
space:
mode:
authorJustScott <development@justscott.me>2024-10-03 15:51:00 -0500
committerJF <JF002@users.noreply.github.com>2026-01-05 13:19:06 +0100
commit8d87a9ed2a7ba4c04d24862f85306f7496b3d6f5 (patch)
treefe0442da3cdcc37c75c74866a38d306e516200d0 /src/displayapp/screens/WatchFaceTerminal.h
parentf88c69a31aadb0fdfe6555db626ba8f05e756272 (diff)
Improved the Terminal Watchfaces UI
+ Reorder code to match the widgets order in the UI. + Moved all objects (rows) into a container + Use InfintimeTheme Colors instead of hardcoded hex values + Added a new InfinitimeTheme color: gray, using it to turn certain values gray when they contain no data + Implement @vkareh's [variable battery icon](https://github.com/InfiniTimeOrg/InfiniTime/pull/1964) color to the battery percentage text. + Replaced the 'You have mail.' notification message with the message '[1]+ Notify' to better fit the terminal lore.
Diffstat (limited to 'src/displayapp/screens/WatchFaceTerminal.h')
-rw-r--r--src/displayapp/screens/WatchFaceTerminal.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/displayapp/screens/WatchFaceTerminal.h b/src/displayapp/screens/WatchFaceTerminal.h
index be425e7a..85d50b7a 100644
--- a/src/displayapp/screens/WatchFaceTerminal.h
+++ b/src/displayapp/screens/WatchFaceTerminal.h
@@ -50,16 +50,17 @@ namespace Pinetime {
Utility::DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::days>> currentDate;
Utility::DirtyValue<std::optional<Controllers::SimpleWeatherService::CurrentWeather>> currentWeather {};
+ lv_obj_t* container;
+ lv_obj_t* notificationIcon;
+ lv_obj_t* label_prompt_1;
lv_obj_t* label_time;
lv_obj_t* label_date;
- lv_obj_t* label_prompt_1;
- lv_obj_t* label_prompt_2;
lv_obj_t* batteryValue;
- lv_obj_t* heartbeatValue;
lv_obj_t* stepValue;
- lv_obj_t* notificationIcon;
- lv_obj_t* connectState;
+ lv_obj_t* heartbeatValue;
lv_obj_t* weather;
+ lv_obj_t* connectState;
+ lv_obj_t* label_prompt_2;
Controllers::DateTime& dateTimeController;
const Controllers::Battery& batteryController;