quicksettings: few other corrections

This commit is contained in:
Yari Polla 2022-05-16 19:06:35 +02:00 committed by Devin Lin
parent 47845000a7
commit a2a9384bea

View file

@ -63,21 +63,18 @@ PlasmaCore.ColorScope {
// left side // left side
ColumnLayout { ColumnLayout {
id: columnLayout id: columnLayout
opacity: opacityValue opacity: opacityValue
spacing: 0 spacing: 0
anchors { anchors {
top: mediaWidget.bottom top: mediaWidget.bottom
topMargin: minWidthHeight * 0.06 topMargin: 0
bottom: parent.bottom bottom: parent.bottom
bottomMargin: minWidthHeight * 0.06
right: quickSettings.left right: quickSettings.left
rightMargin: minWidthHeight * 0.06
left: parent.left left: parent.left
leftMargin: minWidthHeight * 0.06
} }
anchors.margins: minWidthHeight * 0.06
MobileShell.NotificationsWidget { MobileShell.NotificationsWidget {
id: notificationWidget id: notificationWidget
@ -114,8 +111,8 @@ PlasmaCore.ColorScope {
anchors { anchors {
left: parent.left left: parent.left
top: parent.top top: parent.top
topMargin: columnLayout.anchors.topMargin / 2 topMargin: columnLayout.anchors.margins / 2
leftMargin: columnLayout.anchors.leftMargin leftMargin: columnLayout.anchors.margins
} }
font.pixelSize: Math.min(40, minWidthHeight * 0.1) font.pixelSize: Math.min(40, minWidthHeight * 0.1)
@ -135,7 +132,7 @@ PlasmaCore.ColorScope {
top: clock.bottom top: clock.bottom
bottom: isOnLargeScreen ? columnLayout.top : mediaWidget.top bottom: isOnLargeScreen ? columnLayout.top : mediaWidget.top
topMargin: PlasmaCore.Units.smallSpacing topMargin: PlasmaCore.Units.smallSpacing
leftMargin: columnLayout.anchors.leftMargin leftMargin: columnLayout.anchors.margins
} }
font.pixelSize: Math.min(20, minWidthHeight * 0.05) font.pixelSize: Math.min(20, minWidthHeight * 0.05)
@ -146,15 +143,15 @@ PlasmaCore.ColorScope {
id: mediaWidget id: mediaWidget
property real fullHeight: visible ? height + PlasmaCore.Units.smallSpacing * 6 : 0 property real fullHeight: visible ? height + PlasmaCore.Units.smallSpacing * 6 : 0
y: isOnLargeScreen ? date.y - height + date.implicitHeight : date.y + date.implicitHeight + columnLayout.anchors.topMargin / 2 y: isOnLargeScreen ? date.y - height + date.implicitHeight : date.y + date.implicitHeight + columnLayout.anchors.margins / 2
opacity: columnLayout.opacity opacity: columnLayout.opacity
anchors { anchors {
right: quickSettings.left right: quickSettings.left
left: isOnLargeScreen ? date.right : parent.left left: isOnLargeScreen ? date.right : parent.left
leftMargin: columnLayout.anchors.leftMargin leftMargin: columnLayout.anchors.margins
rightMargin: columnLayout.anchors.rightMargin - quickSettings.leftPadding rightMargin: columnLayout.anchors.margins - quickSettings.leftPadding
} }
} }