mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-05 03:30:03 +00:00
ControlCenter: fix scaling (pass scaling to everything)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user