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

Theme is not preserved on windows #19

Open
Ynng opened this issue Oct 17, 2024 · 1 comment
Open

Theme is not preserved on windows #19

Ynng opened this issue Oct 17, 2024 · 1 comment

Comments

@Ynng
Copy link

Ynng commented Oct 17, 2024

Even if I invoke

invoke("plugin:theme|set_theme", {
  theme: "light",
});

When I change my OS theme from light to dark, my Tauri app changes to dark theme too, disregarding the light theme I set.
Windows 11, tauri v2, plugin version 2.1.0

@RainyNight9
Copy link

I also encountered the same problem。

When I switch, it changes normally.

But when I reopen the window, the light does not remain on the window. The page is light, but the window is dark?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants