[macOS] Fix tray icon color states

This commit is contained in:
Vladyslav Miachkov 2024-04-03 22:31:48 +03:00
parent 0325761f3e
commit 9851aacba7

View file

@ -67,7 +67,9 @@ void SystemTrayNotificationHandler::onTranslationsUpdated()
void SystemTrayNotificationHandler::setTrayIcon(const QString &iconPath)
{
QIcon trayIconMask(QPixmap(iconPath).scaled(128,128));
#ifndef Q_OS_MAC
trayIconMask.setIsMask(true);
#endif
m_systemTrayIcon.setIcon(trayIconMask);
}