Skip to content

Commit

Permalink
[processing] vectorize basic modeler images
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 31, 2016
1 parent 00ee2ad commit 8849e94
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 7 deletions.
Binary file removed python/plugins/processing/images/input.png
Binary file not shown.
1 change: 1 addition & 0 deletions python/plugins/processing/images/input.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed python/plugins/processing/images/minus.png
Binary file not shown.
1 change: 1 addition & 0 deletions python/plugins/processing/images/minus.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed python/plugins/processing/images/output.png
Binary file not shown.
Binary file removed python/plugins/processing/images/plus.png
Binary file not shown.
1 change: 1 addition & 0 deletions python/plugins/processing/images/plus.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -437,7 +437,7 @@ def getPositionForParameterItem(self):
return QPointF(newX, MARGIN + BOX_HEIGHT / 2)

def fillInputsTree(self):
icon = QIcon(os.path.join(pluginPath, 'images', 'input.png'))
icon = QIcon(os.path.join(pluginPath, 'images', 'input.svg'))
parametersItem = QTreeWidgetItem()
parametersItem.setText(0, self.tr('Parameters'))
for paramType in ModelerParameterDefinitionDialog.paramTypes:
Expand Down
12 changes: 6 additions & 6 deletions python/plugins/processing/modeler/ModelerGraphicItem.py
Expand Up @@ -47,13 +47,13 @@ def __init__(self, element, model):
self.model = model
self.element = element
if isinstance(element, ModelerParameter):
icon = QIcon(os.path.join(pluginPath, 'images', 'input.png'))
self.pixmap = icon.pixmap(20, 20, state=QIcon.On)
icon = QIcon(os.path.join(pluginPath, 'images', 'input.svg'))
self.pixmap = icon.pixmap(16, 16, state=QIcon.On)
self.text = element.param.description
elif isinstance(element, ModelerOutput):
# Output name
icon = QIcon(os.path.join(pluginPath, 'images', 'output.png'))
self.pixmap = icon.pixmap(20, 20, state=QIcon.On)
icon = QIcon(os.path.join(pluginPath, 'images', 'output.svg'))
self.pixmap = icon.pixmap(16, 16, state=QIcon.On)
self.text = element.description
else:
self.text = element.description
Expand Down Expand Up @@ -384,8 +384,8 @@ class FoldButtonGraphicItem(FlatButtonGraphicItem):
HEIGHT = 11

def __init__(self, position, action, folded):
self.icons = {True: QIcon(os.path.join(pluginPath, 'images', 'plus.png')),
False: QIcon(os.path.join(pluginPath, 'images', 'minus.png'))}
self.icons = {True: QIcon(os.path.join(pluginPath, 'images', 'plus.svg')),
False: QIcon(os.path.join(pluginPath, 'images', 'minus.svg'))}

self.folded = folded
icon = self.icons[self.folded]
Expand Down

0 comments on commit 8849e94

Please sign in to comment.