From d3ecbc1b647ee7cf074a8f06384d68168657d9c6 Mon Sep 17 00:00:00 2001 From: ATMDA Date: Wed, 19 Nov 2025 13:21:18 -0500 Subject: controlcenter: correcting margins/padding after refactor --- modules/controlcenter/audio/AudioPane.qml | 40 +++++++++--------------- modules/controlcenter/bluetooth/BtPane.qml | 1 - modules/controlcenter/network/NetworkingPane.qml | 1 - 3 files changed, 15 insertions(+), 27 deletions(-) (limited to 'modules/controlcenter') diff --git a/modules/controlcenter/audio/AudioPane.qml b/modules/controlcenter/audio/AudioPane.qml index dc3ba56..02cda5b 100644 --- a/modules/controlcenter/audio/AudioPane.qml +++ b/modules/controlcenter/audio/AudioPane.qml @@ -216,31 +216,22 @@ Item { } rightContent: Component { - Item { - anchors.fill: parent - anchors.topMargin: Appearance.padding.large * 2 - anchors.bottomMargin: Appearance.padding.large * 2 - anchors.leftMargin: 0 - anchors.rightMargin: 0 - - StyledFlickable { - id: rightAudioFlickable - anchors.fill: parent - flickableDirection: Flickable.VerticalFlick - contentHeight: contentLayout.height - - StyledScrollBar.vertical: StyledScrollBar { - flickable: rightAudioFlickable - } + StyledFlickable { + id: rightAudioFlickable + flickableDirection: Flickable.VerticalFlick + contentHeight: contentLayout.height - ColumnLayout { - id: contentLayout + StyledScrollBar.vertical: StyledScrollBar { + flickable: rightAudioFlickable + } - anchors.left: parent.left - anchors.right: parent.right - anchors.leftMargin: Appearance.padding.large * 2 - anchors.rightMargin: Appearance.padding.large * 2 - spacing: Appearance.spacing.normal + ColumnLayout { + id: contentLayout + + anchors.left: parent.left + anchors.right: parent.right + anchors.top: parent.top + spacing: Appearance.spacing.normal ConnectionHeader { icon: "volume_up" @@ -528,5 +519,4 @@ Item { } } } - } -} \ No newline at end of file + } \ No newline at end of file diff --git a/modules/controlcenter/bluetooth/BtPane.qml b/modules/controlcenter/bluetooth/BtPane.qml index 9d0a4c1..c20f14b 100644 --- a/modules/controlcenter/bluetooth/BtPane.qml +++ b/modules/controlcenter/bluetooth/BtPane.qml @@ -50,7 +50,6 @@ Item { id: rightLoader anchors.fill: parent - anchors.margins: Appearance.padding.large * 2 asynchronous: true sourceComponent: rightBtPane.targetComponent diff --git a/modules/controlcenter/network/NetworkingPane.qml b/modules/controlcenter/network/NetworkingPane.qml index 127a42a..9a7a4e1 100644 --- a/modules/controlcenter/network/NetworkingPane.qml +++ b/modules/controlcenter/network/NetworkingPane.qml @@ -480,7 +480,6 @@ Item { id: rightLoader anchors.fill: parent - anchors.margins: Appearance.padding.large * 2 opacity: 1 scale: 1 -- cgit v1.2.3-freya