Bug 493380 - Menu Bar Background Turns White In Dark Mode
Summary: Menu Bar Background Turns White In Dark Mode
Status: RESOLVED FIXED
Alias: None
Product: kleopatra
Classification: Applications
Component: general (other bugs)
Version First Reported In: gpg4win 4.3.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Andre Heinecke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-19 19:08 UTC by Addison Canevaro
Modified: 2024-11-04 20:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
screenshot of the observed behavior (42.92 KB, image/jpeg)
2024-09-19 19:08 UTC, Addison Canevaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Addison Canevaro 2024-09-19 19:08:05 UTC
Created attachment 173895 [details]
screenshot of the observed behavior

SUMMARY
After updating to GPG4win 4.3.1 and opening Kleopatra (3.2.2.231170) with Windows in Dark Mode, the menu bar and column headers randomly become illegible.

STEPS TO REPRODUCE
1. Update to GPG4win 4.3.1
2. Open Kleopatra with Windows in Dark Mode.
3. Wait

OBSERVED RESULT
The menu bar and column header backgrounds and text both turn white after an unspecified period of time.

EXPECTED RESULT
The background should remain black. 

SOFTWARE/OS VERSIONS
Windows: Windows 11 Enterprise 22H2
Comment 1 Ingo Klöcker 2024-11-04 20:11:14 UTC
Try starting kleopatra with the command line option `-platform windows:darkmode=2` or by setting the environment variable QT_QPA_PLATFORM to the value "windows:darkmode=2". This should force the usage of a dark palette, but it's possible that some colors still don't work. Alternatively, try using darkmode=0 which should force the usage of the normal light palette. (I haven't tested this because I don't use Windows.)

The next major version of Gpg4win, i.e. version 5.0, should support dark themes on Windows out-of-the-box. See https://dev.gnupg.org/T6932.