Improve hover behaviour, make font configurable, adjust overview

This commit is contained in:
2026-09-09 16:45:21 -07:00
parent 69cc62cb55
commit 5a60cf9f1d
13 changed files with 96 additions and 32 deletions
+5
View File
@@ -42,6 +42,7 @@ Column {
Text {
parent: profile
anchors.centerIn: parent
font.family: root.font
text: PowerProfile.toString(powerProfile)
color: PowerProfiles.profile === powerProfile ? "black" : "white"
Behavior on color { ColorAnimation {duration: 50}}
@@ -96,6 +97,7 @@ Column {
Text {
anchors.centerIn: parent
font.pixelSize: 20
font.family: root.font
color: "white"
text: Math.round(modelData.percentage * 100) + "%"
}
@@ -107,6 +109,7 @@ Column {
x: 4
text: UPowerDeviceType.toString(modelData.type)
font.pixelSize: 20
font.family: root.font
color: "white"
}
Row {
@@ -126,6 +129,7 @@ Column {
anchors.horizontalCenter: parent.horizontalCenter
color: "white"
font.pixelSize: 16
font.family: root.font
text: card.data
}
Text {
@@ -133,6 +137,7 @@ Column {
color: "#aaa"
text: card.label
font.pixelSize: 12
font.family: root.font
}
}
}