switch to new font - configure battery module
This commit is contained in:
parent
ea2294a748
commit
b06ba1da06
@ -35,22 +35,22 @@ Loader {
|
||||
return "battery_android_frame_bolt";
|
||||
}
|
||||
if (frame1) {
|
||||
return "battery_android_frame_1";
|
||||
return "battery_1_bar";
|
||||
}
|
||||
if (frame2) {
|
||||
return "battery_android_frame_2";
|
||||
return "battery_2_bar";
|
||||
}
|
||||
if (frame3) {
|
||||
return "battery_android_frame_3";
|
||||
return "battery_3_bar";
|
||||
}
|
||||
if (frame4) {
|
||||
return "battery_android_frame_4";
|
||||
return "battery_4_bar";
|
||||
}
|
||||
if (frame5) {
|
||||
return "battery_android_frame_5";
|
||||
return "battery_5_bar";
|
||||
}
|
||||
if (frame6) {
|
||||
return "battery_android_frame_full";
|
||||
return "battery_full";
|
||||
}
|
||||
}
|
||||
function getProfileIcon() {
|
||||
|
||||
@ -28,8 +28,9 @@ Rectangle {
|
||||
|
||||
Row {
|
||||
id: statusRow
|
||||
spacing: 5
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
property var combinedText: root.spotify != null ? root.spotify.trackArtist + " - " + root.spotify.trackTitle + " " : ""
|
||||
property var combinedText: root.spotify != null ? root.spotify.trackArtist + " - " + root.spotify.trackTitle : ""
|
||||
property var status: root.spotify != null ? !root.spotify.isPlaying ? "play_arrow" : "pause" : ""
|
||||
CustomText {
|
||||
id: mprisText
|
||||
|
||||
@ -5,7 +5,7 @@ import qs
|
||||
Text {
|
||||
property real fill: 1
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
font.family: "Material Icons Round"
|
||||
font.family: "Material Icons Sharp"
|
||||
color: Colors.foreground
|
||||
font.variableAxes: ({
|
||||
FILL: fill.toFixed(1),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user