change the status widget on theme change

This commit is contained in:
dries.k
2022-11-04 11:38:45 +01:00
parent 689347b004
commit a6a3869371
3 changed files with 15 additions and 1 deletions

View File

@@ -341,9 +341,13 @@ class MainApplication(QtWidgets.QApplication):
self.refresh_applications()
def theme_change_requested_callback(self, theme: str):
# Set the theme, update the main window and message widget icons
# Set the theme
set_theme(self, theme)
# Update the main window icons
self.main_window.set_icons()
# Update the message widget icons
for r in range(self.messages_model.rowCount()):
message_widget: MessageWidget = self.main_window.listView_messages.indexWidget(
self.messages_model.index(r, 0)