mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[ui] GraphEditor: update color/width of node's border
Avoid ambiguities between mainSelected/selected/hover.
This commit is contained in:
parent
f38154b109
commit
8c242cbbec
1 changed files with 14 additions and 2 deletions
|
@ -150,8 +150,20 @@ Item {
|
||||||
anchors.fill: nodeContent
|
anchors.fill: nodeContent
|
||||||
anchors.margins: -border.width
|
anchors.margins: -border.width
|
||||||
visible: root.mainSelected || root.hovered || root.selected
|
visible: root.mainSelected || root.hovered || root.selected
|
||||||
border.width: 2.5
|
border.width: {
|
||||||
border.color: root.mainSelected ? activePalette.highlight : Qt.darker(activePalette.highlight, 1.5)
|
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
|
opacity: 0.9
|
||||||
radius: background.radius + border.width
|
radius: background.radius + border.width
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue