Skip to content

Commit

Permalink
[processing] Respect application stylesheet in modeler/script editor …
Browse files Browse the repository at this point in the history
…dialogs
  • Loading branch information
nyalldawson committed Aug 15, 2018
1 parent 4930061 commit a0b4e02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -249,6 +249,8 @@ def __init__(self, model=None):

if iface is not None:
self.mToolbar.setIconSize(iface.iconSize())
self.setStyleSheet(iface.mainWindow().styleSheet())

self.mActionOpen.setIcon(
QgsApplication.getThemeIcon('/mActionFileOpen.svg'))
self.mActionSave.setIcon(
Expand Down
4 changes: 3 additions & 1 deletion python/plugins/processing/script/ScriptEditorDialog.py
Expand Up @@ -68,7 +68,9 @@ def __init__(self, filePath=None, parent=None):
self.editor.initLexer()
self.searchWidget.setVisible(False)

self.toolBar.setIconSize(iface.iconSize())
if iface is not None:
self.toolBar.setIconSize(iface.iconSize())
self.setStyleSheet(iface.mainWindow().styleSheet())

self.actionOpenScript.setIcon(
QgsApplication.getThemeIcon('/mActionScriptOpen.svg'))
Expand Down

0 comments on commit a0b4e02

Please sign in to comment.