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
+5 -3
View File
@@ -17,20 +17,21 @@ NBox {
property string uptimeText: "--"
RowLayout {
id: content
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.margins: Style.marginM
spacing: Style.marginM
NImageCircled {
width: Style.baseWidgetSize * 1.25
height: Style.baseWidgetSize * 1.25
width: Math.round(Style.baseWidgetSize * 1.25 * Style.uiScaleRatio)
height: width
imagePath: Settings.data.general.avatarImage
fallbackIcon: "person"
borderColor: Color.mPrimary
borderWidth: Math.max(1, Style.borderM)
}
ColumnLayout {
@@ -84,6 +85,7 @@ NBox {
}
}
// ----------------------------------
// Uptime
Timer {
@@ -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
}
}