mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 18:31:58 +02:00
[ui] Usage of Colors palette
Use of Colors palette instead of Qt palette because doesn't work by now for disabled elements (until Qt6).
This commit is contained in:
parent
1b55dc8649
commit
8d0dc4d62e
2 changed files with 3 additions and 3 deletions
|
@ -66,8 +66,8 @@ RowLayout {
|
||||||
text: object.label
|
text: object.label
|
||||||
|
|
||||||
color: {
|
color: {
|
||||||
if (object.hasOutputConnections && !object.enabled) return "grey"
|
if (object.hasOutputConnections && !object.enabled) return Colors.lightgrey
|
||||||
else return "white"
|
else return palette.text
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tooltip hint with attribute's description
|
// Tooltip hint with attribute's description
|
||||||
|
|
|
@ -201,7 +201,7 @@ RowLayout {
|
||||||
anchors.right: attribute && attribute.isOutput ? parent.right : undefined
|
anchors.right: attribute && attribute.isOutput ? parent.right : undefined
|
||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
color: {
|
color: {
|
||||||
if (object.hasOutputConnections && !object.enabled) return "grey"
|
if (object.hasOutputConnections && !object.enabled) return Colors.lightgrey
|
||||||
return hovered ? palette.highlight : palette.text
|
return hovered ? palette.highlight : palette.text
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue