Skip to content
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

Allow configuring thresholds for colors on elapsed time for estimated time #305

Open
Zocker1999NET opened this issue Jan 4, 2024 · 2 comments

Comments

@Zocker1999NET
Copy link

Is your feature request related to a problem? Please describe.
When a presentation is mandatory at my university, I need to meet the assigned time +- 2 minutes. To deviate more than 2 minutes is considered an error.

Describe the solution you'd like
Let users configure when which is color is to appear. This would allow me to configure the timer so that:

  • it fades to green while approaching 18 min
  • then fades to orange while approaching 20 min
  • and finally fade to red while approaching 22 min

(The reasoning is: I estimate that after looking at the timer that I will still need at least a minute to end my presentation properly.)

Describe alternatives you've considered
At least knowing when the colors change would already help. I tried to find that info in the man page or the application itself (without reading the code), but I could not find it. Still, letting users to configure it, even by just setting the values in the config file, would drastically help.

@Cimbali
Copy link
Owner

Cimbali commented Jan 5, 2024

This seems like a reasonable request :)

Currently, the times are hard-coded:

self.color_map = [
( 300, self.label_color_default),
( 0, label_color_ett_reached),
(-150, label_color_ett_info),
(-300, label_color_ett_warn)
]

So:

  • 5 minutes before the end, start fading from default to green ("reached" color)
  • 0 remaining, blink for 5 seconds
  • start fading to orange ("info" color) over 2.5 minutes
  • then fade to red ("warn" color) over 2.5 minutes
  • After that remain solid red

I haven't always been convinced by the whole fading thing myself, nor by the necessity of blinking.

How about being able to specify start-end time of styles/fading? Something like:

green = -2:00 to 0 # expressed in time relative to the expected end
orange = 0 to 120 # can use seconds too
red = 2:00 # this is how you should specify a color starting at a time without fading
blink = -10 to 10 # blink 20s around target time
blink = # Alternately, leave an entry empty to disable

@Cimbali
Copy link
Owner

Cimbali commented Jan 5, 2024

To be fair I think the remaining time convention is confusing too. "-2" for "2 before the end" seems like a more sensible convention, i.e.time relative to the end (in the same direction).

We could also allow values like "5%" that will adapt better to varying durations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants