Skip to content
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

[feat] Change Window theme dynamically at runtime #582

Open
tauri-bot opened this issue Oct 7, 2022 · 1 comment
Open

[feat] Change Window theme dynamically at runtime #582

tauri-bot opened this issue Oct 7, 2022 · 1 comment

Comments

@tauri-bot
Copy link

This issue has been upstreamed from tauri-apps/tauri#5279

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

@martpie
Copy link

martpie commented Feb 23, 2024

A rust-only way of changing the window theme at runtime would already be amazing :]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📬Proposal
Development

No branches or pull requests

2 participants