summaryrefslogtreecommitdiff
path: root/modules/controlcenter/appearance/AppearancePane.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter/appearance/AppearancePane.qml')
-rw-r--r--modules/controlcenter/appearance/AppearancePane.qml12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml
index 719e9b3..5ddcb06 100644
--- a/modules/controlcenter/appearance/AppearancePane.qml
+++ b/modules/controlcenter/appearance/AppearancePane.qml
@@ -295,8 +295,7 @@ RowLayout {
delegate: StyledRect {
required property var modelData
- anchors.left: parent.left
- anchors.right: parent.right
+ width: parent ? parent.width : 0
color: Qt.alpha(Colours.tPalette.m3surfaceContainer, modelData.variant === Schemes.currentVariant ? Colours.tPalette.m3surfaceContainer.a : 0)
radius: Appearance.rounding.normal
@@ -386,8 +385,7 @@ RowLayout {
delegate: StyledRect {
required property var modelData
- anchors.left: parent.left
- anchors.right: parent.right
+ width: parent ? parent.width : 0
readonly property string schemeKey: `${modelData.name} ${modelData.flavour}`
readonly property bool isCurrent: schemeKey === Schemes.currentScheme
@@ -427,9 +425,7 @@ RowLayout {
RowLayout {
id: schemeRow
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter
+ anchors.fill: parent
anchors.margins: Appearance.padding.normal
spacing: Appearance.spacing.normal
@@ -437,7 +433,7 @@ RowLayout {
StyledRect {
id: preview
- anchors.verticalCenter: parent.verticalCenter
+ Layout.alignment: Qt.AlignVCenter
border.width: 1
border.color: Qt.alpha(`#${modelData.colours?.outline}`, 0.5)