mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[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:
parent
8d0dc4d62e
commit
0a770f474f
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue