Windows-Auto-Night-Mode
Windows-Auto-Night-Mode copied to clipboard
backend support: more ways to switch theme
Switching theme...
- [ ] when lowering screen brightness.
- [ ] when ambient sensor detects a dark environment.
- [x] when energy saver is on.
- [x] when going from plugged in to on battery for laptops/mobile devices
- [x] when pressing a keyboard shortcut.
It would be nice if the theme can change also when the wallpaper is predominantly dark or light. Like CullaX on KDE for Linux. Of course this need background task, but the windows wallpaper can be easily found in "%AppData%\Microsoft\Windows\Themes\CachedFiles".
Sounds nice, but I will not implement this. Sorry. I don't think that's necessary.
I think the background service project can be combined with #26.
When the background service is started, it would be useful to show a tray/notification icon that indicates that it's running.
Then it would also be possible to configure right click entries for switching themes there.
I'm very interested in contributing on this milestone together with @utkucanturkan. Did you already have a fixed plan on implementing a background service?
If not, we have briefly talked about this and came to the conclusion that a highly modularized approach would be very beneficial to the ability to maintain and create new background service modules.
Idea
A background service is created that also spawns a configurable tray icon. Since we already have a tray icon this way, we can also provide options like launching the interface from there
The service offers an interface that provides the ability to register and deregister modules. It would also take care of creating and destroying instances whenever necessary. Registered modules run on an interruptable timer which should prove to be very resource efficient.
Each module implements a standardized interface that exposes methods for periodically polling a module.
@Spiritreader can we chat about that, in telegram?
Any plans to implement the brightness trigger? Say, when the brightness goes below a certain level.
Any plans to implement the brightness trigger? Say, when the brightness goes below a certain level.
It's still planned but probably not anytime soon as that's a feature that needs to be implemented from scratch. There are a lot of other issues and improvements that take precedence right now. Win11 has been a major pain to integrate so far, and there are still outstanding issues that have higher priority.
Roger that, thanks for the update!