Merge pull request #728 from amnezia-vpn/bugfix/fix-macos-tray-icon-color

[macOS] Fix tray icon color states
This commit is contained in:
pokamest 2024-04-04 05:53:05 -07:00 committed by GitHub
commit 653ffb9a68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
}