ControlCenter: height & layout changes

This commit is contained in:
lysec
2025-10-07 16:00:29 +02:00
parent 16c07428a1
commit a4a57fd690
4 changed files with 43 additions and 40 deletions
@@ -9,24 +9,22 @@ import qs.Widgets
NBox {
id: root
ColumnLayout {
GridLayout {
id: content
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
anchors.fill: parent
anchors.margins: Style.marginXS * scaling
columns: 2
rows: 2
columnSpacing: Style.marginS * scaling
rowSpacing: Style.marginS * scaling
NCircleStat {
value: SystemStatService.cpuUsage
icon: "cpu-usage"
flat: true
contentScale: 0.8
width: 72 * scaling
height: 68 * scaling
Layout.fillWidth: true
Layout.fillHeight: true
}
NCircleStat {
value: SystemStatService.cpuTemp
@@ -34,24 +32,24 @@ NBox {
icon: "cpu-temperature"
flat: true
contentScale: 0.8
width: 72 * scaling
height: 68 * scaling
Layout.fillWidth: true
Layout.fillHeight: true
}
NCircleStat {
value: SystemStatService.memPercent
icon: "memory"
flat: true
contentScale: 0.8
width: 72 * scaling
height: 68 * scaling
Layout.fillWidth: true
Layout.fillHeight: true
}
NCircleStat {
value: SystemStatService.diskPercent
icon: "storage"
flat: true
contentScale: 0.8
width: 72 * scaling
height: 68 * scaling
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}