New scaling wip

This commit is contained in:
ItsLemmy
2025-10-12 15:25:09 -04:00
parent 1e04a92047
commit a2cd377837
9 changed files with 65 additions and 49 deletions
@@ -14,6 +14,8 @@ NBox {
anchors.fill: parent
anchors.margins: Style.marginS
property int widgetHeight: Math.round(65 * Style.uiScaleRatio)
ColumnLayout {
anchors.centerIn: parent
spacing: 0
@@ -23,7 +25,7 @@ NBox {
icon: "cpu-usage"
flat: true
contentScale: 0.8
height: 65
height: content.widgetHeight
Layout.alignment: Qt.AlignHCenter
}
NCircleStat {
@@ -32,7 +34,7 @@ NBox {
icon: "cpu-temperature"
flat: true
contentScale: 0.8
height: 65
height: content.widgetHeight
Layout.alignment: Qt.AlignHCenter
}
NCircleStat {
@@ -40,7 +42,7 @@ NBox {
icon: "memory"
flat: true
contentScale: 0.8
height: 65
height: content.widgetHeight
Layout.alignment: Qt.AlignHCenter
}
NCircleStat {
@@ -48,7 +50,7 @@ NBox {
icon: "storage"
flat: true
contentScale: 0.8
height: 65
height: content.widgetHeight
Layout.alignment: Qt.AlignHCenter
}
}