diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-15 00:25:31 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-15 00:25:31 -0500 |
| commit | 90e920bf2e002b4e6e0aa1896687c4800d770605 (patch) | |
| tree | 59ca3bdf789e2b95842aaac283e0d3641955d117 /modules/controlcenter/appearance | |
| parent | controlcenter: undo accordion collapse on network and audio pane sections (diff) | |
| download | caelestia-shell-90e920bf2e002b4e6e0aa1896687c4800d770605.tar.gz caelestia-shell-90e920bf2e002b4e6e0aa1896687c4800d770605.tar.bz2 caelestia-shell-90e920bf2e002b4e6e0aa1896687c4800d770605.zip | |
controlcenter: fixed anchors vs parent logs
Diffstat (limited to 'modules/controlcenter/appearance')
| -rw-r--r-- | modules/controlcenter/appearance/AppearancePane.qml | 12 |
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) |