diff --git a/ReText/icons/document-open-folder.png b/ReText/icons/document-open-folder.png new file mode 100644 index 00000000..e352666b Binary files /dev/null and b/ReText/icons/document-open-folder.png differ diff --git a/ReText/window.py b/ReText/window.py index 4dae75af..a35e8ea4 100644 --- a/ReText/window.py +++ b/ReText/window.py @@ -226,8 +226,11 @@ def __init__(self, parent=None): self.actionFullScreen = self.act(self.tr('Fullscreen mode'), 'view-fullscreen', shct=QKeySequence.StandardKey.FullScreen, trigbool=self.enableFullScreen) self.actionFullScreen.setChecked(self.isFullScreen()) - self.actionConfig = self.act(self.tr('Preferences'), icon='preferences-system', - trig=self.openConfigDialog) + self.actionConfig = self.act(self.tr('Preferences'), trig=self.openConfigDialog) + if QIcon.hasThemeIcon('configure'): + self.actionConfig.setIcon(QIcon.fromTheme('configure')) + else: + self.actionConfig.setIcon(QIcon.fromTheme('preferences-system')) self.actionConfig.setMenuRole(QAction.MenuRole.PreferencesRole) self.actionSaveHtml = self.act('HTML', 'text-html', self.saveFileHtml) self.actionPdf = self.act('PDF', 'application-pdf', self.savePdf) @@ -266,7 +269,7 @@ def __init__(self, parent=None): globalSettings.useWebEngine = False self.actionWebEngine.setEnabled(False) self.actionWebEngine.setChecked(globalSettings.useWebEngine) - self.actionShow = self.act(self.tr('Show directory'), 'system-file-manager', self.showInDir) + self.actionShow = self.act(self.tr('Show directory'), 'document-open-folder', self.showInDir) self.actionShowDirectoryTree = self.act(self.tr('Show directory tree'), trigbool=self.treeView.setVisible, shct=Qt.Key.Key_F9)