Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions meshroom/ui/qml/GraphEditor/Node.qml
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,21 @@ Item {
Rectangle {
anchors.fill: nodeContent
anchors.margins: -border.width
visible: root.mainSelected || root.hovered
border.width: 2.5
border.color: root.mainSelected ? activePalette.highlight : Qt.darker(activePalette.highlight, 1.5)
visible: root.mainSelected || root.hovered || root.selected
border.width: {
if(root.mainSelected)
return 3
if(root.selected)
return 2.5
return 2
}
border.color: {
if(root.mainSelected)
return activePalette.highlight
if(root.selected)
return Qt.darker(activePalette.highlight, 1.2)
return Qt.lighter(activePalette.base, 3)
}
opacity: 0.9
radius: background.radius + border.width
color: "transparent"
Expand Down Expand Up @@ -183,7 +195,7 @@ Item {
id: header
width: parent.width
height: headerLayout.height
color: root.mainSelected ? activePalette.highlight : root.selected ? Qt.darker(activePalette.highlight, 1.1): root.baseColor
color: root.baseColor
radius: background.radius

// Fill header's bottom radius
Expand Down