OSD: fix vertical layout

autoformat
This commit is contained in:
lysec
2025-10-11 18:18:43 +02:00
parent df6fdf3656
commit 3dff242606
5 changed files with 15 additions and 13 deletions
@@ -9,6 +9,7 @@ import qs.Widgets
NBox {
id: root
property real scaling: 1.0
property real localOutputVolume: AudioService.volume
property real localInputVolume: AudioService.inputVolume
@@ -9,6 +9,8 @@ import qs.Widgets
NBox {
id: root
property real scaling: 1.0
Item {
id: content
anchors.fill: parent
@@ -23,8 +25,8 @@ NBox {
icon: "cpu-usage"
flat: true
contentScale: 0.8
width: 70 * scaling
height: 65 * scaling
scaling: root.scaling
Layout.alignment: Qt.AlignHCenter
}
NCircleStat {
@@ -33,8 +35,8 @@ NBox {
icon: "cpu-temperature"
flat: true
contentScale: 0.8
width: 70 * scaling
height: 65 * scaling
scaling: root.scaling
Layout.alignment: Qt.AlignHCenter
}
NCircleStat {
@@ -42,8 +44,8 @@ NBox {
icon: "memory"
flat: true
contentScale: 0.8
width: 70 * scaling
height: 65 * scaling
scaling: root.scaling
Layout.alignment: Qt.AlignHCenter
}
NCircleStat {
@@ -51,8 +53,8 @@ NBox {
icon: "storage"
flat: true
contentScale: 0.8
width: 70 * scaling
height: 65 * scaling
scaling: root.scaling
Layout.alignment: Qt.AlignHCenter
}
}
@@ -63,6 +63,7 @@ NPanel {
SystemMonitorCard {
Layout.preferredWidth: Style.baseWidgetSize * 2.625 * scaling
Layout.fillHeight: true
scaling: root.scaling
}
}
@@ -70,6 +71,7 @@ NPanel {
AudioCard {
Layout.fillWidth: true
Layout.preferredHeight: Math.max(120 * scaling)
scaling: root.scaling
}
// Bottom actions (two grouped rows of round buttons)