-
-
Notifications
You must be signed in to change notification settings - Fork 978
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 |
8e55197
to
a36cde7
Compare
a36cde7
to
3fa9dbb
Compare
e289435
to
da482ba
Compare
217e5fc
to
8681c2a
Compare
I've applied the changes from all of vkareh's reviews, and have been using this without issue for quite a while now. Here's some images of how it looks with the digital watch face weather changes. @JF002 would this be something you'd be interested in including in version 1.16.0? |
20c10c2
to
2580264
Compare
Adjusted the code to work with the new alarm icon in the status icons from #1884. To prevent crowding I moved the timer over a hair: It doesn't align well with the weather in the digital watch face... but I didn't think it aligned all that well before either: |
2580264
to
f4b341e
Compare
Maybe to save space the timer could shorten to |
Incredible timing, I was just working on something like this. |
be6bd90
to
18855db
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.
This commit moves the timeRemaining and timerIcon into a timerContainer nested within the primary container. This ensures the timeRemaining and timerIcon stay closer together than the other items in the primary container, while still dynamically aligning with the rest of them. When two or more icons (excluding batteryIcon) are present, the timeRemaining and timerIcon are replaced by a soloTimerIcon to prevent overlap with the time in the top left corner.
Loop through the children of `container` to count visible icons instead of hardcoding each icon. Adding icons to the container no longer requires adding another hardcoded icon to the active Icon counter logic.
Removes the minute counter from the timer when under a minute to allow displaying the remaining second count with more icons.
18855db
to
24cd41f
Compare
If you want to be more aggressive, I'd even remove the colon This looks great, BTW, and I use this feature every day. Looking forward to rebasing the new look into my daily-driver branch. |
Reduced timer letter spacing to save space Allows up to four icons (using an example stopWatch icons for the fourth icon): Another example with hour support from PR #2243: |
Most aggressive would be to replace the current time with the time remaining for as long as the timer is running 😄 |
(look here for up-to-date images, as the ones below no longer represent the changes in this PR)
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.