[ui] Highlight attributes' pins correctly

Harmonize the highlighting of the attributes' pins when they
are hovered and clicked on, may they already be connected to
other nodes or not.
This commit is contained in:
Candice Bentéjac 2022-07-19 10:57:16 +02:00
parent 352c8403e1
commit 8310b5c532

View file

@ -59,7 +59,7 @@ RowLayout {
color: Colors.sysPalette.base
Rectangle {
visible: inputConnectMA.containsMouse || childrenRepeater.count > 0 || (attribute && attribute.isLink)
visible: inputConnectMA.containsMouse || childrenRepeater.count > 0 || (attribute && attribute.isLink) || inputConnectMA.drag.active || inputDropArea.containsDrag
radius: isList ? 0 : 2
anchors.fill: parent
anchors.margins: 2
@ -209,7 +209,7 @@ RowLayout {
color: Colors.sysPalette.base
Rectangle {
visible: attribute.hasOutputConnections
visible: attribute.hasOutputConnections || outputConnectMA.containsMouse || outputConnectMA.drag.active || outputDropArea.containsDrag
radius: isList ? 0 : 2
anchors.fill: parent
anchors.margins: 2