ControlCenter: fix scaling (pass scaling to everything)

This commit is contained in:
lysec
2025-10-12 10:25:52 +02:00
parent 7d37d5dc17
commit b4a344b0b5
8 changed files with 31 additions and 1 deletions
@@ -11,6 +11,8 @@ import qs.Widgets
NBox {
id: root
property real scaling: 1.0
// Background artwork that covers everything
Item {
anchors.fill: parent
@@ -10,6 +10,7 @@ import qs.Widgets
// Power Profiles: performance, balanced, eco
NBox {
property real scaling: 1.0
property real spacing: 0
// Centralized service
@@ -14,6 +14,7 @@ import qs.Widgets
NBox {
id: root
property real scaling: 1.0
property string uptimeText: "--"
RowLayout {
@@ -10,6 +10,7 @@ import qs.Widgets
// Utilities: record & wallpaper
NBox {
property real scaling: 1.0
property real spacing: 0
RowLayout {
@@ -9,6 +9,7 @@ import qs.Widgets
NBox {
id: root
property real scaling: 1.0
readonly property bool weatherReady: (LocationService.data.weather !== null)
ColumnLayout {
@@ -40,11 +40,13 @@ NPanel {
ProfileCard {
Layout.fillWidth: true
Layout.preferredHeight: Math.max(64 * scaling)
scaling: root.scaling
}
WeatherCard {
Layout.fillWidth: true
Layout.preferredHeight: Math.max(190 * scaling)
scaling: root.scaling
}
// Middle section: media + stats column
@@ -57,6 +59,7 @@ NPanel {
MediaCard {
Layout.fillWidth: true
Layout.fillHeight: true
scaling: root.scaling
}
// System monitors combined in one card
@@ -85,6 +88,7 @@ NPanel {
Layout.fillWidth: true
Layout.fillHeight: true
spacing: content.cardSpacing
scaling: root.scaling
}
// Utilities buttons
@@ -92,6 +96,7 @@ NPanel {
Layout.fillWidth: true
Layout.fillHeight: true
spacing: content.cardSpacing
scaling: root.scaling
}
}
}