Skip to content

Commit

Permalink
Fix two icons which looked alien (non-monochrome) in Plasma
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya57 committed Dec 29, 2024
1 parent ae594c5 commit 7b06a88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Binary file added ReText/icons/document-open-folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions ReText/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7b06a88

Please sign in to comment.