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);
}
void MainWindow::changeEvent(QEvent *e)
{
QMainWindow::changeEvent(e);
if (e->type() == QEvent::PaletteChange) {
updateIconTheme();
setTrayIcon();
}
}
void MainWindow::showConfigureServer(const QString &message)
{
ServerConfigDialog dialog(this, serverConfig());

View File

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