fix icons missing
This commit is contained in:
parent
a2065bff51
commit
de2be39a88
12 changed files with 15 additions and 15 deletions
|
|
@ -13,7 +13,7 @@ Row {
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: {
|
icon: {
|
||||||
if (root.charging) return "";
|
if (root.charging) return "";
|
||||||
const icons = ["", "", "", "", "", "", "", "", "", "", ""];
|
const icons = ["", "", "", "", "", "", "", "", "", "", ""];
|
||||||
return icons[Math.min(10, Math.floor(root.pct / 10))];
|
return icons[Math.min(10, Math.floor(root.pct / 10))];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ Row {
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
visible: root.status === "connected"
|
visible: root.status === "connected"
|
||||||
icon: ""
|
icon: ""
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ Row {
|
||||||
}
|
}
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: ""
|
icon: ""
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ Row {
|
||||||
}
|
}
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: ""
|
icon: ""
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ M.BarIcon {
|
||||||
|
|
||||||
property bool active: false
|
property bool active: false
|
||||||
|
|
||||||
icon: root.active ? "" : ""
|
icon: root.active ? "" : ""
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: toggle
|
id: toggle
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ Row {
|
||||||
}
|
}
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: ""
|
icon: ""
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ Row {
|
||||||
readonly property bool playing: player?.playbackState === MprisPlaybackState.Playing
|
readonly property bool playing: player?.playbackState === MprisPlaybackState.Playing
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: root.playing ? "" : (root.player?.playbackState === MprisPlaybackState.Paused ? "" : "")
|
icon: root.playing ? "" : (root.player?.playbackState === MprisPlaybackState.Paused ? "" : "")
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
M.BarLabel {
|
M.BarLabel {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ Row {
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: {
|
icon: {
|
||||||
if (root.state === "wifi")
|
if (root.state === "wifi")
|
||||||
return "";
|
return "";
|
||||||
if (root.state === "eth")
|
if (root.state === "eth")
|
||||||
return "";
|
return "";
|
||||||
if (root.state === "linked")
|
if (root.state === "linked")
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ M.BarIcon {
|
||||||
property string profile: ""
|
property string profile: ""
|
||||||
|
|
||||||
icon: {
|
icon: {
|
||||||
if (root.profile === "performance") return "";
|
if (root.profile === "performance") return "";
|
||||||
if (root.profile === "power-saver") return "";
|
if (root.profile === "power-saver") return "";
|
||||||
if (root.profile === "balanced") return "";
|
if (root.profile === "balanced") return "";
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ Row {
|
||||||
}
|
}
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: ""
|
icon: ""
|
||||||
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05
|
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ Row {
|
||||||
readonly property bool muted: sink?.audio?.muted ?? false
|
readonly property bool muted: sink?.audio?.muted ?? false
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: root.muted ? "" : (root.volume > 0.5 ? "" : (root.volume > 0 ? "" : ""))
|
icon: root.muted ? "" : (root.volume > 0.5 ? "" : (root.volume > 0 ? "" : ""))
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
M.BarLabel {
|
M.BarLabel {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import Quickshell.Io
|
||||||
import "." as M
|
import "." as M
|
||||||
|
|
||||||
M.BarIcon {
|
M.BarIcon {
|
||||||
icon: ""
|
icon: ""
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: proc
|
id: proc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue