fixed update icon windows & ref code

This commit is contained in:
dranik
2026-05-30 14:50:18 +03:00
parent 596a422475
commit 0db1e52468
11 changed files with 108 additions and 48 deletions
@@ -82,7 +82,6 @@ void SystemTrayNotificationHandler::refreshTheme()
m_isDarkTheme = isDarkTheme;
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
// Palette can change without gtk/portal settings updating; always repaint on Linux.
updateTrayIcon();
#else
if (themeChanged) {
@@ -106,6 +105,9 @@ void SystemTrayNotificationHandler::updateTrayIcon()
}
m_trayIcon->applyVisual(currentTrayVisual());
#if defined(Q_OS_WIN)
qDebug() << "Windows tray: setIcon darkTheme=" << m_isDarkTheme << "state=" << static_cast<int>(m_trayState);
#endif
}
void SystemTrayNotificationHandler::onTrayActivated(QSystemTrayIcon::ActivationReason reason)