Bug 493380

Summary: Menu Bar Background Turns White In Dark Mode
Product: [Applications] kleopatra Reporter: Addison Canevaro <jacanevaro>
Component: generalAssignee: Andre Heinecke <aheinecke>
Status: RESOLVED FIXED    
Severity: normal CC: kloecker, mutz, pim-bugs-null
Priority: NOR    
Version First Reported In: gpg4win 4.3.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of the observed behavior

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.