Skip to content

Conversation

pieterdd
Copy link

As mentioned in #107, I've generated dynamic tray icons that indicate how close you are to your next break. I've made 10 of them indicating 0%, 10%, 20%, ... 80%, 90% and 100%. Given the size of the tray icon this should be granular enough for users.

Was going to contribute the code for this as well but ran into some roadblocks. I was expecting getSettings().breakLength to be an object indicating a period of time like a Moment.js Duration object. According to the type definition it's actually a Date that's set to 1899-12-31 00:20:00, and according to VSCode's debugger it's a string. Which means that before I can get started on this feature, I'd have to refactor existing usages of breakLength so that reality is consistent with the type definition. Due to time constraints, I'll just stick to contributing the icons for now.

Included is also a vector recreation of the tray icon in monochrome. I made it so it's easier to generate an additional set of tray icons for Mac in the future.

This may prove useful later as a template to generate dynamic tray
icons.
@tom-james-watson
Copy link
Owner

Hello!

This is really awesome! I'm currently working on a new version of the app which has a huge number of code changes. I'll revisit this once that is finished and released, which should be over the next couple of weeks 🙏.

@holocronweaver
Copy link

@tom-james-watson Any chance this change could be integrated now? Monochrome icons for dark desktop themes would be great!

@tom-james-watson
Copy link
Owner

I don't have the motivation/bandwidth to work on this myself at the moment. PRs are welcome, of course!

@holocronweaver
Copy link

@tom-james-watson What work is needed prior to merge?

@tom-james-watson
Copy link
Owner

Oops replied to quickly and forgot this was already on a PR.

There needs to be some new code that sets the tray icon dynamically based on the time left to the next break.

Agree that ideally the icons would just be monochrome at this point.

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

Successfully merging this pull request may close these issues.

3 participants