Can't force window to stay in light theme #7108
Replies: 1 comment 5 replies
-
|
I guess the simplest answer would be to create a frameless window and make the controls with custom html Full guide here |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
my current OS theme is in dark, and when I create a window with:
The window will be in light theme at first, but after leaving it there for a few minutes, the window will turn into dark theme (the title bar will become black).
And I can actually catch the theme-change event
TauriEvent.WINDOW_THEME_CHANGED, which I have no idea who caused it.Are there some other settings I must set in order to force the window staying in light theme? or is there any function I can use to set the theme back to light (since I can catch the event)?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions