ControlCenter: revert to old layout

This commit is contained in:
lysec
2025-10-11 04:16:12 +02:00
parent 32c929c943
commit e86f4e56cb
9 changed files with 449 additions and 55 deletions
@@ -9,10 +9,15 @@ import qs.Widgets
NBox {
id: root
RowLayout {
ColumnLayout {
id: content
anchors.fill: parent
anchors.margins: Style.marginXS * scaling
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.leftMargin: Style.marginS * scaling
anchors.rightMargin: Style.marginS * scaling
anchors.topMargin: Style.marginXS * scaling
anchors.bottomMargin: Style.marginM * scaling
spacing: Style.marginS * scaling
NCircleStat {
@@ -20,8 +25,8 @@ NBox {
icon: "cpu-usage"
flat: true
contentScale: 0.8
Layout.fillWidth: true
Layout.fillHeight: true
width: 72 * scaling
height: 68 * scaling
}
NCircleStat {
value: SystemStatService.cpuTemp
@@ -29,24 +34,24 @@ NBox {
icon: "cpu-temperature"
flat: true
contentScale: 0.8
Layout.fillWidth: true
Layout.fillHeight: true
width: 72 * scaling
height: 68 * scaling
}
NCircleStat {
value: SystemStatService.memPercent
icon: "memory"
flat: true
contentScale: 0.8
Layout.fillWidth: true
Layout.fillHeight: true
width: 72 * scaling
height: 68 * scaling
}
NCircleStat {
value: SystemStatService.diskPercent
icon: "storage"
flat: true
contentScale: 0.8
Layout.fillWidth: true
Layout.fillHeight: true
width: 72 * scaling
height: 68 * scaling
}
}
}