-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeePassXC doesn't properly switch between light and dark appearance on macOS #7615
Comments
My work-around for the problem is to use General Settings applet; that "fixes" it, not causes it. The only time I see this is when I do as reported above. I realize that's a pretty long cycle for bug testing/reproduction, but that is when/how I encounter it. I'll do some additional testing to see if I can find other avenues for reproduction, and will test on an additional Mac. If I can find something that either shortens or clarifies the steps to reproduce, I'll post it here. |
The |
I have used KeePassXC on macOS with auto theme switching for a long time and it has always worked perfectly. |
@phoerious Including steps 3 and 4 where you shutdown you computer when the theme is dark and then boot back when it's already turned light? |
I haven't tried that, but it should send the same signals. Although I would consider it a real edge case. If you really shut down your Mac, it should restart KeePassXC on boot. Are you just putting your Mac in hibernate mode? |
Here's an example in Swift how it's a bit different from the old Mojave implementation. The example doesn't check for the Auto value though. |
Reproduced on my personal laptop last night and this morning. (The other is my work laptop.) Interesting, the screen shots didn't capture the "about" boxes. That's 2.6.6. and 2.7.0. Since this is reproducible and it does appear to be a bug, can we re-label this a bug and remove the "not reproducible" label? |
How did you reproduce it? The wait 12 hours while asleep method? |
That depends on who's doing the sleeping. ;-) I did just what I noted in the original report. I first saw this on my work laptop, and the steps to recreate this are fairly normal routine for me.
Bottom line, you have to shut it down after the everything switches to the dark appearance, not put it to sleep. This is common routine for me, so I don't "consider it a real edge case". I have a hard time believing that Mac owners who are also KeePassXC users don't go through a similar routine and encounter the same issue. |
@le-jawa can you reduce the test cycle by adjusting the transition schedule? So it would take 1-2 minutes or so? |
I have the same bug running macOS Monterey (12.4) and KeePassXC 2.7.1. Auto-switching is on. Normally my Macbook runs for weeks without shutting down. And like @le-jawa the first time I experienced this was when I had shutdown my Macbook Pro 16" in the evening (dark mode) and started it again in the morning - at the Apple Store for diagnostics. I didn't login there. First login was in the evening (dark mode again) and then I also got the mixed representation. |
The issue is that there is a macOS bug where the |
…e key for dark mode detection, as it's not always correct
Same issue MacOS 13.1 M1, just switch appearance to auto in Mac, and shutdown by night, and the next day will load in mixed dark. I'm changing this manually, since I installed the app! |
Can reproduce on macOS 11.6.8 Big Sur with KeepassXC 2.7.4 from Homebrew. |
* Fix #7615 - Don't rely on AppleInterfaceStyle preference key for dark mode detection, as it's not always correct
…#8615) * Fix keepassxreboot#7615 - Don't rely on AppleInterfaceStyle preference key for dark mode detection, as it's not always correct
…#8615) * Fix keepassxreboot#7615 - Don't rely on AppleInterfaceStyle preference key for dark mode detection, as it's not always correct
…#8615) * Fix keepassxreboot#7615 - Don't rely on AppleInterfaceStyle preference key for dark mode detection, as it's not always correct
* Fix #7615 - Don't rely on AppleInterfaceStyle preference key for dark mode detection, as it's not always correct
Overview
I've experienced a problem with KeePassXC on Macs (currently macOS 12) with the appearance set to change automatically. If I run KeePassXC during the day (light appearance) and keep it running until after the appearance switches to dark, then the next morning (light again) KeePassXC will display with a mix of light and dark elements.
Steps to Reproduce
Expected Behavior
KeePassXC will switch between light and dark appearances flawlessly.
Actual Behavior
The interface is a mix of light and dark elements when going to light appearance after KeePassXC has been running during the day and into the night, and then again the next morning.
Context
This has happened since automatic appearance switching support was added in KeePassXC 2.6.4.
I've been able to work around the issue by manually switching my Mac appearance to "Light", then back to "Auto".
KeePassXC - VERSION 2.7.0
Revision: d7a9ef4
Operating System: macOS
The text was updated successfully, but these errors were encountered: