Improve hover behaviour, make font configurable, adjust overview
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user