Bug 1217350 - Some Electron-based applications are unable to detect dark mode
Summary: Some Electron-based applications are unable to detect dark mode
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Aeon
Classification: openSUSE
Component: Desktop Environment (show other bugs)
Version: Current
Hardware: x86-64 Other
: P5 - None : Minor
Target Milestone: ---
Assignee: Richard Brown
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-21 00:51 UTC by Alexander Sanderson
Modified: 2024-05-11 17:10 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Visual Studio Code, though preconfigured by default with a dark theme, has a light titlebar, suggesting that Electron detects a light theme in the system. (536.69 KB, image/png)
2023-11-21 00:51 UTC, Alexander Sanderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Sanderson 2023-11-21 00:51:30 UTC
Created attachment 870861 [details]
Visual Studio Code, though preconfigured by default with a dark theme, has a light titlebar, suggesting that Electron detects a light theme in the system.

Some Electron-based applications are unable to detect that the system is running with a dark theme, despite dark mode being the default configuration for openSUSE Aeon. This can lead to a lack of UI consistency.

I noticed this primarily in apps like Visual Studio Code and Signal. It's worth pointing out that this doesn't occur on every Electron app (namely, the Webcord Flatpak is able to handle theming just fine). I'll also point out that this isn't necessarily an issue with the apps alone or GNOME, because the aforementioned apps--whether packaged as a Flatpak, tarball, or run within a distrobox--do correctly use a dark theme on Ubuntu 23.10.

I'm not an expert on SELinux, but it is my best guess as to why this is happening.
Comment 1 Richard Brown 2024-05-01 11:33:40 UTC
I've tried recreating this but it doesn't seem to happen on any of the electron apps I'm using..can you confirm if this still is an issue?
Comment 2 Alexander Sanderson 2024-05-11 17:10:04 UTC
Good news! I guess something must've changed between November and now, because this issue no longer seems to exist! Yay!