Keepassxc: [PRE-RELEASE] In macOS dark mode, tab display colors are wrong (2.4.0-beta2)

Created on 25 Feb 2019  路  9Comments  路  Source: keepassxreboot/keepassxc

When MacOS is set to "dark mode" theme (System Prefs > General > Appearance: Dark), KeepassXC will display its currently selected tab in black text on almost-black background (basically unreadable). Any unselected tab(s) display in black on light grey (readable but ugly, and not in keeping with theme).

Expected Behavior

All tabs are readable, and the selected one even moreso by being highlighted.

(using Finder as model)

1. App has focus

  • display the selected tab in white on dark grey
  • display unselected tabs in grey on "almost-black" (very dark grey)
    finder focused

2. App does not have focus

  • display the selected tab in white on dark grey
  • display unselected tabs in grey on "almost-black" (very dark grey)
    finder defocused

Note that all the grey levels get lighter by a shade, when focus is gained.

Current Behavior

1. KeePassXC has focus

  • current tab displays as black text on almost-black background
  • unselected tabs display as black text on light grey background

keepass focused

2. KeePassXC does not have focus

  • current tab displays as black text on almost-black background
  • unselected tabs display as black text on light grey background

keepass defocused

Note that the appearance of the selected tab does not change at all with gain/loss of focus.
Note that the grey levels in the tabs actually get a shade _darker_ with gain of focus.

Possible Solution

  • Most important: Change the color of the selected tab's text to be white.
  • Change the color of the unselected tabs' text to be grey.
  • Change the color of the unselected tabs' background to be dark grey.

Related (closed) bug: Dark Mode on macOS 10.14 makes texts barely readable

Steps to Reproduce

  1. Open KeePassXC
  2. Open more than one .kdbx file (so that selected and unselected tabs are both visible)
  3. In System Preferences > General > Appearance, toggle back and forth between Light and Dark.
  4. While doing so, select (focus) and deselect the application. Note its appearance.

Context

Nothing special; I use the program all day long with multiple databases open, but that's probably a typical use case. Personal + Work + Work#2 + free work done for relatives + government secrets...

Debug Info

KeePassXC - Version 2.4.0-beta2
Build Type: PreRelease
Revision: 9bc20f0

Libraries:

  • Qt 5.12.0
  • libgcrypt 1.8.4

Operating system: macOS 10.14
CPU architecture: x86_64
Kernel: darwin 18.2.0

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (only unsigned sharing)
  • YubiKey
  • TouchID
bug macOS upstream

Most helpful comment

This also now applies to the latest stable v2.4.0 release, and looks like it has been fixed/merged in the upstream Qt library in 256664.

All 9 comments

Confirmed, but that is very strange because we don't enforce any specific colors on the tabs. I think this is really a Qt bug. (also I need to test multiple databases on MacOS more often haha)

This also now applies to the latest stable v2.4.0 release, and looks like it has been fixed/merged in the upstream Qt library in 256664.

I don't want to hijack this bug, but I guess there is still another Qt related bug regarding Mojave. When switching from Light to Dark Mode while KeePassXC is open, all input fields stay white (in Light Mode Colour).

Screenshot 2019-04-06 at 20 22 45

Screenshot 2019-04-06 at 20 29 00

Just restart the application after switching color schemes. That is a Qt bug.

Just commenting after upgrading to version 2.4.1 : from the change log I understand this issue could have been solved, but it doesn't seem to be the case. Tabs and tab names are still not the right color.

No, we only fixed reference entry colouring. Tab colouring is something Qt needs to fix.

This issue is duplicated by #3193, which includes a workaround on how to disable broken dark mode support on Mojave.

keepassxc: 2.5.1
macos: 10.15.1

Tab titles colour and input fields colour look good for me in dark and light mode, even after chaning theme without restarting keepassxc.

Was this page helpful?
0 / 5 - 0 ratings