fix issues with spotify detection
This commit is contained in:
parent
4bd18b7adb
commit
49308bee1a
@ -6,7 +6,6 @@ import qs.settings
|
|||||||
|
|
||||||
Variants {
|
Variants {
|
||||||
model: Quickshell.screens
|
model: Quickshell.screens
|
||||||
property var radius: root.container.radius
|
|
||||||
|
|
||||||
delegate: PanelWindow {
|
delegate: PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||
@ -25,20 +25,19 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
implicitWidth: statusRow.implicitWidth
|
implicitWidth: statusRow.implicitWidth
|
||||||
|
|
||||||
Row {
|
|
||||||
id: statusRow
|
|
||||||
property var combinedText: root.spotify.trackArtist + " - " + root.spotify.trackTitle + " "
|
|
||||||
property var status: !root.spotify.isPlaying ? "play_arrow" : "pause"
|
|
||||||
CustomText {
|
|
||||||
id: mprisText
|
|
||||||
text: root.spotify != null ? parent.combinedText : ""
|
|
||||||
}
|
|
||||||
CustomIcon {
|
|
||||||
id: mprisStatus
|
|
||||||
text: parent.status
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Row {
|
||||||
|
id: statusRow
|
||||||
|
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
|
||||||
|
text: root.spotify != null ? parent.combinedText : ""
|
||||||
|
}
|
||||||
|
CustomIcon {
|
||||||
|
id: mprisStatus
|
||||||
|
text: root.spotify != null ? parent.status : ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user