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";
|
return "battery_android_frame_bolt";
|
||||||
}
|
}
|
||||||
if (frame1) {
|
if (frame1) {
|
||||||
return "battery_android_frame_1";
|
return "battery_1_bar";
|
||||||
}
|
}
|
||||||
if (frame2) {
|
if (frame2) {
|
||||||
return "battery_android_frame_2";
|
return "battery_2_bar";
|
||||||
}
|
}
|
||||||
if (frame3) {
|
if (frame3) {
|
||||||
return "battery_android_frame_3";
|
return "battery_3_bar";
|
||||||
}
|
}
|
||||||
if (frame4) {
|
if (frame4) {
|
||||||
return "battery_android_frame_4";
|
return "battery_4_bar";
|
||||||
}
|
}
|
||||||
if (frame5) {
|
if (frame5) {
|
||||||
return "battery_android_frame_5";
|
return "battery_5_bar";
|
||||||
}
|
}
|
||||||
if (frame6) {
|
if (frame6) {
|
||||||
return "battery_android_frame_full";
|
return "battery_full";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function getProfileIcon() {
|
function getProfileIcon() {
|
||||||
|
|||||||
@ -28,8 +28,9 @@ Rectangle {
|
|||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: statusRow
|
id: statusRow
|
||||||
|
spacing: 5
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
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" : ""
|
property var status: root.spotify != null ? !root.spotify.isPlaying ? "play_arrow" : "pause" : ""
|
||||||
CustomText {
|
CustomText {
|
||||||
id: mprisText
|
id: mprisText
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import qs
|
|||||||
Text {
|
Text {
|
||||||
property real fill: 1
|
property real fill: 1
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
font.family: "Material Icons Round"
|
font.family: "Material Icons Sharp"
|
||||||
color: Colors.foreground
|
color: Colors.foreground
|
||||||
font.variableAxes: ({
|
font.variableAxes: ({
|
||||||
FILL: fill.toFixed(1),
|
FILL: fill.toFixed(1),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user