Compare commits

...

3 Commits

Author SHA1 Message Date
eriq12 c86fcd4f24 Add radius to both scrubber outline and scrubber background for visual
consistency
2026-07-24 00:18:38 -04:00
eriq12 62c5a9a98d [AI] Changed height to restore original scrubber height visually, and
changed color for visibility
2026-07-24 00:17:30 -04:00
eriq12 4e9798f436 [AI] Added outline to scrubber 2026-07-24 00:13:23 -04:00
+26 -17
View File
@@ -189,29 +189,38 @@ Item {
text: playerController.player?.trackArtist text: playerController.player?.trackArtist
} }
Rectangle { Rectangle {
id: scrubber id: scrubberOutline
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 8 Layout.preferredHeight: 12
Layout.rightMargin: 8 Layout.rightMargin: 8
color: blendedColors.colLayer1 color: blendedColors.colSecondaryContainer
visible: playerController.player?.length > 0 visible: playerController.player?.length > 0
radius: parent.height / 2
Rectangle { Rectangle {
anchors.top: parent.top id: scrubber
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 anchors.fill: parent
onClicked: { anchors.margins: 2
if (playerController.player) { color: blendedColors.colLayer1
var pos = (mouseX / parent.width) * playerController.player.length radius: parent.height / 2
playerController.player.position = pos
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
}
} }
} }
} }