mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
Merge pull request #728 from amnezia-vpn/bugfix/fix-macos-tray-icon-color
[macOS] Fix tray icon color states
This commit is contained in:
@@ -67,7 +67,9 @@ void SystemTrayNotificationHandler::onTranslationsUpdated()
|
|||||||
void SystemTrayNotificationHandler::setTrayIcon(const QString &iconPath)
|
void SystemTrayNotificationHandler::setTrayIcon(const QString &iconPath)
|
||||||
{
|
{
|
||||||
QIcon trayIconMask(QPixmap(iconPath).scaled(128,128));
|
QIcon trayIconMask(QPixmap(iconPath).scaled(128,128));
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
trayIconMask.setIsMask(true);
|
trayIconMask.setIsMask(true);
|
||||||
|
#endif
|
||||||
m_systemTrayIcon.setIcon(trayIconMask);
|
m_systemTrayIcon.setIcon(trayIconMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user