-
-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Timer's Time Remaining to StatusIcons #1967
base: main
Are you sure you want to change the base?
Conversation
Build size and comparison to main:
|
612500d
to
5ef3a85
Compare
I like this feature a lot, as I use the timer regularly. Since you asked for opinions, how about making it part of the |
5ef3a85
to
071aebf
Compare
@vkareh Here's how the timer would look as a StatusIcon: There are currently 2 issues with this:
I'll implement these fixes/changes, but first I'd like some feedback on whether this is something people actually want. I personally think it could be nice, but honestly I don't see myself needing to know how much time is remaining on a timer in the second it takes me to switch between apps (but some people may). |
@vkareh Ah I missed the part where the status icons update every 5 seconds. I think moving this timer to the status icons would be the best solution if the weather icon is moved as shown in your image above. I'll try this out. |
Alright I moved the timer from right above the time on the digital watchface, to the StatusIcons 'area'. Also, I'm VERY new to C++, and was just following what looked to be the right way to pass this timer controller around, but I feel it got added to too many places... so feedback on whether the code is correct or not would be much appreciated. To me it seems like it would be best if I could just define the timer controller within |
I created a PR to move the weather widget: #1998 |
src/displayapp/widgets/StatusIcons.h
Outdated
@@ -13,7 +13,7 @@ namespace Pinetime { | |||
namespace Widgets { | |||
class StatusIcons { | |||
public: | |||
StatusIcons(const Controllers::Battery& batteryController, const Controllers::Ble& bleController); | |||
StatusIcons(const Controllers::Battery& batteryController, const Controllers::Ble& bleController, Controllers::Timer& timer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be const Controllers::Timer& timer
to keep it consistent.
@@ -29,7 +29,8 @@ namespace Pinetime { | |||
const Controllers::Battery& batteryController, | |||
const Controllers::Ble& bleController, | |||
Controllers::DateTime& dateTimeController, | |||
std::array<Applications, 6>& applications); | |||
std::array<Applications, 6>& applications, | |||
Controllers::Timer& timer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest putting this below the bleController
to keep it consistent with all other controllers used by the StatusIcon.
@@ -19,6 +19,7 @@ namespace Pinetime { | |||
const Pinetime::Controllers::Battery& batteryController, | |||
const Pinetime::Controllers::Ble& bleController, | |||
Controllers::DateTime& dateTimeController, | |||
Pinetime::Controllers::Timer& timer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this under bleController
(all statusicon controllers seem to be always grouped together, they're also all const
).
8e55197
to
a36cde7
Compare
a36cde7
to
3fa9dbb
Compare
e289435
to
da482ba
Compare
When a timer is active the time remaining will be displayed in the StatusIcons bar along with an hour glass symbol, and will be set to hidden when the timer's off.
da482ba
to
217e5fc
Compare
Adds a live output of the timer's time remaining, along with an hourGlass symbol to the left. Both of these are placed above the current time and are the same color as the date as to not draw attention away from the current time. The icon and the time remaining are both set to hidden if the timer isn't running.
Looking for opinions on possible changes to the timer's and symbol's font color and/or position.