From 28f255733ef57e3e94273811ea2c12188a34531a Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sat, 15 Nov 2025 17:26:29 +0100 Subject: [PATCH] Remove theme-based menubar icon toggle on macOS The menubar theme detection on macOS has always been wonky, and with Liquid Glass it has become entirely useless. This removes the icon theme switch and uses the monochrome light icon as a mask until we find a better solution. This should look okay in most cases, unless the user has a very bright wallpaper. --- src/gui/Icons.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/Icons.cpp b/src/gui/Icons.cpp index 007711260..0ada4a177 100644 --- a/src/gui/Icons.cpp +++ b/src/gui/Icons.cpp @@ -94,12 +94,14 @@ QIcon Icons::trayIcon(bool unlocked) } QIcon i; -#if defined(Q_OS_MACOS) || defined(Q_OS_WIN) +#if defined(Q_OS_WIN) if (osUtils->isStatusBarDark()) { i = icon(QString("keepassxc-monochrome-light%1").arg(suffix), false); } else { i = icon(QString("keepassxc-monochrome-dark%1").arg(suffix), false); } +#elif defined(Q_OS_MACOS) + i = icon(QString("keepassxc-monochrome-light%1").arg(suffix), false); #else i = icon(QString("%1-%2%3").arg(applicationIconName(), iconApperance, suffix), false); #endif