Bug 1217350

Summary: Some Electron-based applications are unable to detect dark mode
Product: [openSUSE] openSUSE Aeon Reporter: Alexander Sanderson <ars2swim>
Component: Desktop EnvironmentAssignee: Richard Brown <rbrown>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: ars2swim, sebix+novell.com
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
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.

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!