controlcenter: fixed anchors vs parent logs

This commit is contained in:
ATMDA 2025-11-15 00:25:31 -05:00
parent 7d1c89a7a8
commit 90e920bf2e
5 changed files with 12 additions and 16 deletions

View file

@ -49,7 +49,7 @@ ColumnLayout {
font.pointSize: Appearance.font.size.normal
Behavior on rotation {
Anim {
duration: Appearance.anim.durations.short
duration: Appearance.anim.durations.small
easing.bezierCurve: Appearance.anim.curves.standard
}
}

View file

@ -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)

View file

@ -310,8 +310,7 @@ RowLayout {
delegate: StyledRect {
required property var modelData
anchors.left: parent.left
anchors.right: parent.right
width: parent ? parent.width : 0
readonly property bool isSelected: root.selectedApp === modelData

View file

@ -501,7 +501,8 @@ RowLayout {
}
WirelessPasswordDialog {
anchors.fill: parent
Layout.fillWidth: true
Layout.fillHeight: true
session: root.session
z: 1000
}

View file

@ -250,10 +250,10 @@ RowLayout {
RowLayout {
id: clockRow
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.margins: Appearance.padding.large
Layout.fillWidth: true
Layout.leftMargin: Appearance.padding.large
Layout.rightMargin: Appearance.padding.large
Layout.alignment: Qt.AlignVCenter
spacing: Appearance.spacing.normal