We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue has been upstreamed from tauri-apps/tauri#5279
As far as I can tell from the docs, concerning the theme of the window, there are JS APIs for only (1) getting the window's current theme, and (2) listening to the system theme change.
I'm trying to set the window's theme to "dark"/"light" as well when the user chooses the "dark"/"light" theme in my app.
Is there a way to dynamically change the theme of the window through JavaScript?
A JS API to change the theme of the window.
No response
The text was updated successfully, but these errors were encountered:
A rust-only way of changing the window theme at runtime would already be amazing :]
Sorry, something went wrong.
No branches or pull requests
Describe the problem
As far as I can tell from the docs, concerning the theme of the window, there are JS APIs for only (1) getting the window's current theme, and (2) listening to the system theme change.
I'm trying to set the window's theme to "dark"/"light" as well when the user chooses the "dark"/"light" theme in my app.
Is there a way to dynamically change the theme of the window through JavaScript?
Describe the solution you'd like
A JS API to change the theme of the window.
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: