From f5cd389156345936a647a382ec278a870b43465d Mon Sep 17 00:00:00 2001 From: Michele Spagnolo Date: Tue, 25 Feb 2025 18:07:14 +0100 Subject: [PATCH] System object UI improvements --- .../internal/LayoutPanelItemDelegate.qml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) 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