diff --git a/src/instrumentsscene/qml/MuseScore/InstrumentsScene/internal/LayoutPanelItemDelegate.qml b/src/instrumentsscene/qml/MuseScore/InstrumentsScene/internal/LayoutPanelItemDelegate.qml index e2bc9eb6814d6..d0502b62673e6 100644 --- a/src/instrumentsscene/qml/MuseScore/InstrumentsScene/internal/LayoutPanelItemDelegate.qml +++ b/src/instrumentsscene/qml/MuseScore/InstrumentsScene/internal/LayoutPanelItemDelegate.qml @@ -216,6 +216,7 @@ FocusableControl { spacing: 2 VisibilityBox { + visible: root.type !== LayoutPanelItemType.SYSTEM_OBJECTS_LAYER Layout.alignment: Qt.AlignLeft Layout.preferredWidth: width @@ -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 @@ -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