Skip to content
Permalink
Browse files

[processing] vectorize basic modeler images

  • Loading branch information
nirvn committed Dec 31, 2016
1 parent 00ee2ad commit 8849e942080d3411d4c0478691a13ebadc5aab1d
Binary file not shown.
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M6.5 2.5v4h-4v3h4v4h3v-4h4v-3h-4v-4h-3z" fill="#87add9" stroke="#4673ad"/></svg>
Binary file not shown.
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 11" width="11" height="11"><path fill="#fff" d="M0 0h11v11H0z"/><path fill="none" stroke="#f0f3f2" stroke-linecap="square" d="M1.5 1.5h8v8h-8z"/><path d="M3.5 5.5h4" fill="none" stroke="#000" stroke-linecap="round"/></svg>
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 11" width="11" height="11"><path fill="#fff" d="M0 0h11v11H0z"/><path fill="none" stroke="#f0f3f2" stroke-linecap="square" d="M1.5 1.5h8v8h-8z"/><path d="M3.5 5.5h4M5.5 3.5v4" fill="none" stroke="#000" stroke-linecap="round"/></svg>
@@ -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:
@@ -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
@@ -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]

0 comments on commit 8849e94

Please sign in to comment.
You can’t perform that action at this time.