Skip to content

Commit

Permalink
System object UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Feb 26, 2025
1 parent 4075aa8 commit f5cd389
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ FocusableControl {
spacing: 2

VisibilityBox {
visible: root.type !== LayoutPanelItemType.SYSTEM_OBJECTS_LAYER
Layout.alignment: Qt.AlignLeft
Layout.preferredWidth: width

Expand All @@ -239,6 +240,13 @@ FocusableControl {
}
}

StyledIconLabel {
visible: root.type === LayoutPanelItemType.SYSTEM_OBJECTS_LAYER
Layout.alignment: Qt.AlignCenter
iconCode: IconCode.MINUS
enabled: model && model.itemRole.isVisible
}

Item {
Layout.fillWidth: true
Layout.leftMargin: 12 * styleData.depth
Expand Down Expand Up @@ -436,17 +444,6 @@ FocusableControl {
(root.type === LayoutPanelItemType.INSTRUMENT ||
root.type === LayoutPanelItemType.STAFF)

PropertyChanges {
target: root.background
color: ui.theme.textFieldColor
opacity: 1
}
},

State {
name: "SYSTEM_OBJECTS_LAYER_NORMAL"
when: root.type === LayoutPanelItemType.SYSTEM_OBJECTS_LAYER

PropertyChanges {
target: root.background
color: ui.theme.textFieldColor
Expand Down

0 comments on commit f5cd389

Please sign in to comment.