From b3dbc49161d5cbab361f8fead1f25f8ac1b1bd1e 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 7cccf406a..bae6ba4cd 100644 --- a/src/gui/Icons.cpp +++ b/src/gui/Icons.cpp @@ -92,12 +92,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(), iconAppearance, suffix), false); #endif