Skip to content

Commit 7b06a88

Browse files
committed
Fix two icons which looked alien (non-monochrome) in Plasma
1 parent ae594c5 commit 7b06a88

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ReText/icons/document-open-folder.png

941 Bytes
Loading

ReText/window.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,11 @@ def __init__(self, parent=None):
226226
self.actionFullScreen = self.act(self.tr('Fullscreen mode'), 'view-fullscreen',
227227
shct=QKeySequence.StandardKey.FullScreen, trigbool=self.enableFullScreen)
228228
self.actionFullScreen.setChecked(self.isFullScreen())
229-
self.actionConfig = self.act(self.tr('Preferences'), icon='preferences-system',
230-
trig=self.openConfigDialog)
229+
self.actionConfig = self.act(self.tr('Preferences'), trig=self.openConfigDialog)
230+
if QIcon.hasThemeIcon('configure'):
231+
self.actionConfig.setIcon(QIcon.fromTheme('configure'))
232+
else:
233+
self.actionConfig.setIcon(QIcon.fromTheme('preferences-system'))
231234
self.actionConfig.setMenuRole(QAction.MenuRole.PreferencesRole)
232235
self.actionSaveHtml = self.act('HTML', 'text-html', self.saveFileHtml)
233236
self.actionPdf = self.act('PDF', 'application-pdf', self.savePdf)
@@ -266,7 +269,7 @@ def __init__(self, parent=None):
266269
globalSettings.useWebEngine = False
267270
self.actionWebEngine.setEnabled(False)
268271
self.actionWebEngine.setChecked(globalSettings.useWebEngine)
269-
self.actionShow = self.act(self.tr('Show directory'), 'system-file-manager', self.showInDir)
272+
self.actionShow = self.act(self.tr('Show directory'), 'document-open-folder', self.showInDir)
270273
self.actionShowDirectoryTree = self.act(self.tr('Show directory tree'),
271274
trigbool=self.treeView.setVisible,
272275
shct=Qt.Key.Key_F9)

0 commit comments

Comments
 (0)