-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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
nativeTheme
not receiving updated
event respecting Linux system preference change
#25925
Comments
I think this is fixed as a side-effect of #23479 |
This is still broken with 11.0.1 @ckerr Example repo updated. |
I'm seeing similar behaviour on Ubuntu 20.04 with Electron 11.1.1 while working with GitHub Desktop's Linux fork. I can put together a better repro but the short version:
This limits us being able to emulate the "Automatically switch theme to match system theme" behaviour that macOS and Windows now allow us to do in the app. |
Hopefully this can be resolved somehow. I use an extension to change my theme automatically depending on time of day, and Electron apps (most of my apps) use the system theme when launching, but as mentioned don't update it after the theme has been changed, and they require a relaunch. |
Also doesn't work with 11.4.1 and 12.0.1, but seems to be fixed with 13.0.0-beta.7. 🎉 |
Is there any indication of when version 13 will be released? And will the electron apps I use have to each be individually updated by their developer? |
@julian-fairfax
Electron 13 stable release is scheduled for 2021-05-25.
Yes. |
Any hope for a backport on this fix, to at least @shiftkey's finding that the value is updated but For us the value of |
Anybody on the team know what PR may have resolved the issue for @ffflorian and whether it might be backport-able? |
Closing this as fixed, but feel free to continue discussing backports. |
Unfortunately, this doesn't appear to be working on KDE (current Arch Linux ARM / Asahi Linux, KDE Plasma 5.25.5). Most other applications do automatically update when the theme changes, including all tested KDE apps, Firefox, and Inkscape (GIMP and Chromium don't). The correct theme is applied on startup, but doesn't get updated when the system theme changes. |
Preflight Checklist
Issue Details
10.1.311.0.1Expected Behavior
When switching "Window theme" preference between Light and Dark modes on Ubuntu, the
updated
event should be triggered fornativeTheme
.Actual Behavior
The
updated
event is never triggered when alternating between window themes.To Reproduce
See: https://github.com/davidwinter/electron-native-theme/blob/master/main.js
Screenshots
The text was updated successfully, but these errors were encountered: