mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-29 00:46:32 +02:00
[ui] GraphEditor: highlight chunks with lighter/darker
This commit is contained in:
parent
40c2caac5d
commit
5c379c508c
2 changed files with 10 additions and 1 deletions
|
@ -6,6 +6,7 @@ import Utils 1.0
|
||||||
ListView {
|
ListView {
|
||||||
id: root
|
id: root
|
||||||
interactive: false
|
interactive: false
|
||||||
|
property bool highlightChunks: true
|
||||||
|
|
||||||
SystemPalette { id: activePalette }
|
SystemPalette { id: activePalette }
|
||||||
|
|
||||||
|
@ -27,7 +28,14 @@ ListView {
|
||||||
height: root.chunkHeight
|
height: root.chunkHeight
|
||||||
width: root.chunkWidth
|
width: root.chunkWidth
|
||||||
property var chunkColor: Colors.getChunkColor(object, { "NONE": root.defaultColor })
|
property var chunkColor: Colors.getChunkColor(object, { "NONE": root.defaultColor })
|
||||||
color: index % 2 == 0 ? chunkColor : Qt.darker(chunkColor, 1.2)
|
color: {
|
||||||
|
if(!highlightChunks || model.count == 1)
|
||||||
|
return chunkColor
|
||||||
|
if(index % 2 == 0)
|
||||||
|
return Qt.lighter(chunkColor, 1.1)
|
||||||
|
else
|
||||||
|
return Qt.darker(chunkColor, 1.1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1039,6 +1039,7 @@ ApplicationWindow {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: 6
|
height: 6
|
||||||
model: _reconstruction ? _reconstruction.sortedDFSChunks : null
|
model: _reconstruction ? _reconstruction.sortedDFSChunks : null
|
||||||
|
highlightChunks: false
|
||||||
}
|
}
|
||||||
|
|
||||||
WorkspaceView {
|
WorkspaceView {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue