[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:
Aurore LAFAURIE 2024-03-26 11:39:43 +01:00 committed by Candice Bentéjac
parent 1b55dc8649
commit 8d0dc4d62e
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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
} }
} }