diff --git a/src/vorta/assets/icons/paste.svg b/src/vorta/assets/icons/paste.svg index 95398d03..225e40a6 100644 --- a/src/vorta/assets/icons/paste.svg +++ b/src/vorta/assets/icons/paste.svg @@ -1 +1,6 @@ - + diff --git a/src/vorta/views/main_window.py b/src/vorta/views/main_window.py index 335f2aaf..95439842 100644 --- a/src/vorta/views/main_window.py +++ b/src/vorta/views/main_window.py @@ -3,7 +3,7 @@ from pathlib import Path from PyQt5 import QtCore, uic from PyQt5.QtCore import QPoint from PyQt5.QtGui import QFontMetrics, QKeySequence -from PyQt5.QtWidgets import QCheckBox, QFileDialog, QMenu, QMessageBox, QShortcut, QToolTip +from PyQt5.QtWidgets import QApplication, QCheckBox, QFileDialog, QMenu, QMessageBox, QShortcut, QToolTip from vorta.profile_export import ImportFailedException, ProfileExport from vorta.store.models import BackupProfileModel, SettingsModel from vorta.utils import borg_compat, get_asset, get_network_status_monitor, is_system_tray_available @@ -101,6 +101,9 @@ class MainWindow(MainWindowBase, MainWindowUI): self.createStartBtn.start() self.cancelButton.setEnabled(True) + # Connect to palette change + QApplication.instance().paletteChanged.connect(lambda p: self.set_icons()) + self.set_icons() def on_close_window(self): diff --git a/src/vorta/views/source_tab.py b/src/vorta/views/source_tab.py index f2b7d374..abac41ea 100644 --- a/src/vorta/views/source_tab.py +++ b/src/vorta/views/source_tab.py @@ -85,6 +85,9 @@ class SourceTab(SourceBase, SourceUI, BackupProfileMixin): self.excludePatternsField.textChanged.connect(self.save_exclude_patterns) self.excludeIfPresentField.textChanged.connect(self.save_exclude_if_present) + # Connect to palette change + QApplication.instance().paletteChanged.connect(lambda p: self.set_icons()) + # Populate self.populate_from_profile() self.set_icons()