-
Notifications
You must be signed in to change notification settings - Fork 276
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 system default to auto-detect if dark or light mode is set #383
Conversation
Codecov Report
@@ Coverage Diff @@
## main #383 +/- ##
==========================================
- Coverage 57.86% 55.03% -2.83%
==========================================
Files 23 23
Lines 2048 2055 +7
Branches 343 347 +4
==========================================
- Hits 1185 1131 -54
- Misses 764 818 +54
- Partials 99 106 +7
Continue to review full report at Codecov.
|
Thanks @06b! Why do you consider it experimental? |
Please also add a commit adding this to the test at time-to-leave_tests__renderer_\themes.js :) |
I felt that it was experimental as I was only able to test it on Windows (Windows 10 Pro, Version 2004, OS build 19041.508) and since Time to Leave works on MacOS & Linux I thought that perhaps it should at least be tested on other operating systems before considering if it's okay not to consider it experimental. I also wasn't sure if the theme name could be considered misleading, for example if someone used a high contrast theme would they expect that it should pickup the high contrast or if they picked a certain accent color on their computer, would they expect that Time to Leave would use that since the theme was "system-default" So I figured if I included (experimental) - that hopefully users might be understanding that if they assumed something such as autodetecting high contrast mode / not using accent colors from their system and it didn't work... and maybe someone might think of a better name (but I could also be overthinking this, naming things is hard) I will add a gif showing how it works shortly. |
Attached gif, starts with operating system default to dark mode, open up time to start and then it's on dark mode. Closed out of time to start, set operating system default to light mode, open up time to start and it's on light mode. Ends with keeping time to start open, and switching the operating system from light to dark mode, which in this case - I must go to view > reload. While I don't think it would be common for a user to change the default app mode as shown in the gif often, it is possible that there might be operating systems or applications which would switch the mode depending on time of day, etc for example. |
Wow! This looks really cool! But something I noticed is that the current width of the preferences window is not enough and the text becomes a bit clutter: Can you please increase the initial size of the preferences window to better fit the content? For reference, on MacOS the minimal width should be 440px. |
This is looking really neat! Gives off a very professional feeling hahaha |
Co-authored-by: Thamara Andrade <tkcandrade@gmail.com>
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.
Really awesome work!
Add "system-default" theme which auto-detects if the a person has their system set to prefer dark or light mode and set the default theme to it.
Related to #69