[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

@ -201,7 +201,7 @@ RowLayout {
anchors.right: attribute && attribute.isOutput ? parent.right : undefined
rightPadding: 0
color: {
if (object.hasOutputConnections && !object.enabled) return "grey"
if (object.hasOutputConnections && !object.enabled) return Colors.lightgrey
return hovered ? palette.highlight : palette.text
}
}