[ui] add CompatibilityBadge on CompatibilityNodes

* add badge icon on nodes in GraphEditor
* add badge banner in AttributeEditor with upgrade button when available
This commit is contained in:
Yann Lanthony 2018-07-18 22:43:57 +02:00
parent ca712ef2aa
commit 0128cd56f0
5 changed files with 126 additions and 3 deletions

View file

@ -237,7 +237,7 @@ Item {
node: object
width: root.nodeWidth
readOnly: root.readOnly
baseColor: root.selectedNode == node ? Qt.lighter("#607D8B", 1.2) : "#607D8B"
baseColor: root.selectedNode == node ? Qt.lighter(defaultColor, 1.2) : defaultColor
onAttributePinCreated: registerAttributePin(attribute, pin)
onAttributePinDeleted: unregisterAttributePin(attribute, pin)