[ui] Disabled behavior applied to all types of parameters and attributes

Disabled behavior applied to all types of parameters and attributes
This commit is contained in:
Aurore LAFAURIE 2024-03-26 14:54:04 +01:00 committed by Candice Bentéjac
parent 8d0dc4d62e
commit 0a770f474f
3 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,7 @@ RowLayout {
text: object.label
color: {
if (object.hasOutputConnections && !object.enabled) return Colors.lightgrey
if ((object.hasOutputConnections || object.isLink) && !object.enabled) return Colors.lightgrey
else return palette.text
}

View file

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

View file

@ -487,6 +487,7 @@ Item {
delegate: Loader {
id: paramLoader
active: !object.isOutput && !isFileAttributeBaseType(object)
visible: object.enabled || object.isLink || object.hasOutputConnections
property bool isFullyActive: (m.displayParams || object.isLink || object.hasOutputConnections)
width: parent.width