controlcenter: fixed anchors vs parent logs
This commit is contained in:
parent
7d1c89a7a8
commit
90e920bf2e
5 changed files with 12 additions and 16 deletions
|
|
@ -49,7 +49,7 @@ ColumnLayout {
|
||||||
font.pointSize: Appearance.font.size.normal
|
font.pointSize: Appearance.font.size.normal
|
||||||
Behavior on rotation {
|
Behavior on rotation {
|
||||||
Anim {
|
Anim {
|
||||||
duration: Appearance.anim.durations.short
|
duration: Appearance.anim.durations.small
|
||||||
easing.bezierCurve: Appearance.anim.curves.standard
|
easing.bezierCurve: Appearance.anim.curves.standard
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -295,8 +295,7 @@ RowLayout {
|
||||||
delegate: StyledRect {
|
delegate: StyledRect {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
|
|
||||||
anchors.left: parent.left
|
width: parent ? parent.width : 0
|
||||||
anchors.right: parent.right
|
|
||||||
|
|
||||||
color: Qt.alpha(Colours.tPalette.m3surfaceContainer, modelData.variant === Schemes.currentVariant ? Colours.tPalette.m3surfaceContainer.a : 0)
|
color: Qt.alpha(Colours.tPalette.m3surfaceContainer, modelData.variant === Schemes.currentVariant ? Colours.tPalette.m3surfaceContainer.a : 0)
|
||||||
radius: Appearance.rounding.normal
|
radius: Appearance.rounding.normal
|
||||||
|
|
@ -386,8 +385,7 @@ RowLayout {
|
||||||
delegate: StyledRect {
|
delegate: StyledRect {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
|
|
||||||
anchors.left: parent.left
|
width: parent ? parent.width : 0
|
||||||
anchors.right: parent.right
|
|
||||||
|
|
||||||
readonly property string schemeKey: `${modelData.name} ${modelData.flavour}`
|
readonly property string schemeKey: `${modelData.name} ${modelData.flavour}`
|
||||||
readonly property bool isCurrent: schemeKey === Schemes.currentScheme
|
readonly property bool isCurrent: schemeKey === Schemes.currentScheme
|
||||||
|
|
@ -427,9 +425,7 @@ RowLayout {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: schemeRow
|
id: schemeRow
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.fill: parent
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.margins: Appearance.padding.normal
|
anchors.margins: Appearance.padding.normal
|
||||||
|
|
||||||
spacing: Appearance.spacing.normal
|
spacing: Appearance.spacing.normal
|
||||||
|
|
@ -437,7 +433,7 @@ RowLayout {
|
||||||
StyledRect {
|
StyledRect {
|
||||||
id: preview
|
id: preview
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: Qt.alpha(`#${modelData.colours?.outline}`, 0.5)
|
border.color: Qt.alpha(`#${modelData.colours?.outline}`, 0.5)
|
||||||
|
|
|
||||||
|
|
@ -310,8 +310,7 @@ RowLayout {
|
||||||
delegate: StyledRect {
|
delegate: StyledRect {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
|
|
||||||
anchors.left: parent.left
|
width: parent ? parent.width : 0
|
||||||
anchors.right: parent.right
|
|
||||||
|
|
||||||
readonly property bool isSelected: root.selectedApp === modelData
|
readonly property bool isSelected: root.selectedApp === modelData
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -501,7 +501,8 @@ RowLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
WirelessPasswordDialog {
|
WirelessPasswordDialog {
|
||||||
anchors.fill: parent
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
session: root.session
|
session: root.session
|
||||||
z: 1000
|
z: 1000
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -250,10 +250,10 @@ RowLayout {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: clockRow
|
id: clockRow
|
||||||
|
|
||||||
anchors.left: parent.left
|
Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
Layout.leftMargin: Appearance.padding.large
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
Layout.rightMargin: Appearance.padding.large
|
||||||
anchors.margins: Appearance.padding.large
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
spacing: Appearance.spacing.normal
|
spacing: Appearance.spacing.normal
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue