mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-28 22:17:40 +02:00
Merge pull request #2401 from alicevision/dev/nodeHeaderSelectedColor
[ui] Selected node header set to base color
This commit is contained in:
commit
b5d1f98d1a
1 changed files with 16 additions and 4 deletions
|
@ -149,9 +149,21 @@ Item {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: nodeContent
|
anchors.fill: nodeContent
|
||||||
anchors.margins: -border.width
|
anchors.margins: -border.width
|
||||||
visible: root.mainSelected || root.hovered
|
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"
|
||||||
|
@ -183,7 +195,7 @@ Item {
|
||||||
id: header
|
id: header
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: headerLayout.height
|
height: headerLayout.height
|
||||||
color: root.mainSelected ? activePalette.highlight : root.selected ? Qt.darker(activePalette.highlight, 1.1): root.baseColor
|
color: root.baseColor
|
||||||
radius: background.radius
|
radius: background.radius
|
||||||
|
|
||||||
// Fill header's bottom radius
|
// Fill header's bottom radius
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue