You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, is there any way to detect light or dark mode on the system an application is running on to change themes respectively?
After looking for a while I can't find any mention of it in Druid, and no Druid example seems to adhere to the dark/light mode setting (at least on MacOS) despite its theme containing keys for dark and light colors?
Should I just rely on the dark-light crate for now and check periodically?
The text was updated successfully, but these errors were encountered:
Druid does not currently provide this information. It is something that we want to support automatically in the future, including detecting live changes to this setting. Generally speaking the whole environment/theme story of Druid needs a lot of improvements. I think some changes are coming soon™ to the environment with the Xilem rework.
For now using that dark-light crate is a decent middle step.
Let's keep this issue open here to track the status of this feature in Druid.
#2196 and #2204 made some first steps in implementing the dark/light detection for Windows in druid-shell. It's done once though and is not really reactive to runtime changes, nor does it expose this to druid apps themselves. That work remains to be done in the future.
Those issues also mention the potential of adding a dependency to windows-rs to get better access to this information. Other options might include WM_THEMECHANGED, WM_SYSCOLORCHANGE, and RegNotifyChangeKeyValue.
Hello, is there any way to detect light or dark mode on the system an application is running on to change themes respectively?
After looking for a while I can't find any mention of it in Druid, and no Druid example seems to adhere to the dark/light mode setting (at least on MacOS) despite its theme containing keys for dark and light colors?
Should I just rely on the dark-light crate for now and check periodically?
The text was updated successfully, but these errors were encountered: