feat: update icon theme on theme change

This commit is contained in:
sithlord48 2025-10-19 08:46:00 -04:00 committed by Chris Rizzitello
parent 6b05c2abc0
commit 42b90a2b14
2 changed files with 12 additions and 0 deletions

View file

@ -1049,6 +1049,15 @@ void MainWindow::hide()
m_actionMinimize->setVisible(false); m_actionMinimize->setVisible(false);
} }
void MainWindow::changeEvent(QEvent *e)
{
QMainWindow::changeEvent(e);
if (e->type() == QEvent::PaletteChange) {
updateIconTheme();
setTrayIcon();
}
}
void MainWindow::showConfigureServer(const QString &message) void MainWindow::showConfigureServer(const QString &message)
{ {
ServerConfigDialog dialog(this, serverConfig()); ServerConfigDialog dialog(this, serverConfig());

View file

@ -89,6 +89,9 @@ public:
void hide(); void hide();
protected:
void changeEvent(QEvent *e) override;
private: private:
void toggleLogVisible(bool visible); void toggleLogVisible(bool visible);