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.
This commit is contained in:
Janek Bevendorff 2025-11-15 17:26:29 +01:00 committed by Janek Bevendorff
parent eefee1f092
commit b3dbc49161

View file

@ -92,12 +92,14 @@ QIcon Icons::trayIcon(bool unlocked)
} }
QIcon i; QIcon i;
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN) #if defined(Q_OS_WIN)
if (osUtils->isStatusBarDark()) { if (osUtils->isStatusBarDark()) {
i = icon(QString("keepassxc-monochrome-light%1").arg(suffix), false); i = icon(QString("keepassxc-monochrome-light%1").arg(suffix), false);
} else { } else {
i = icon(QString("keepassxc-monochrome-dark%1").arg(suffix), false); 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 #else
i = icon(QString("%1-%2%3").arg(applicationIconName(), iconAppearance, suffix), false); i = icon(QString("%1-%2%3").arg(applicationIconName(), iconAppearance, suffix), false);
#endif #endif