Compare commits
4 Commits
5382a81770
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ef93b1951 | |||
| c86fcd4f24 | |||
| 62c5a9a98d | |||
| 4e9798f436 |
+1
-1
@@ -7,7 +7,7 @@ import qs.common.widgets
|
||||
|
||||
Scope {
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
model: Config.options.bar.screenList.length > 0 ? Quickshell.screens.filter(s => Config.options.bar.screenList.includes(s.name)) : Quickshell.screens
|
||||
PanelWindow {
|
||||
required property var modelData
|
||||
screen: modelData
|
||||
|
||||
+26
-17
@@ -189,29 +189,38 @@ Item {
|
||||
text: playerController.player?.trackArtist
|
||||
}
|
||||
Rectangle {
|
||||
id: scrubber
|
||||
id: scrubberOutline
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: 8
|
||||
Layout.preferredHeight: 12
|
||||
Layout.rightMargin: 8
|
||||
color: blendedColors.colLayer1
|
||||
color: blendedColors.colSecondaryContainer
|
||||
visible: playerController.player?.length > 0
|
||||
radius: parent.height / 2
|
||||
|
||||
Rectangle {
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
color: blendedColors.colPrimary
|
||||
width: (playerController.player?.position / playerController.player?.length) * parent.width
|
||||
radius: parent.height / 2
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: scrubberInteract
|
||||
id: scrubber
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
if (playerController.player) {
|
||||
var pos = (mouseX / parent.width) * playerController.player.length
|
||||
playerController.player.position = pos
|
||||
anchors.margins: 2
|
||||
color: blendedColors.colLayer1
|
||||
radius: parent.height / 2
|
||||
|
||||
Rectangle {
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
color: blendedColors.colPrimary
|
||||
width: (playerController.player?.position / playerController.player?.length) * parent.width
|
||||
radius: parent.height / 2
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: scrubberInteract
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
if (playerController.player) {
|
||||
var pos = (mouseX / parent.width) * playerController.player.length
|
||||
playerController.player.position = pos
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user