dashboard: center media pane

This commit is contained in:
2 * r + 2 * t 2025-06-05 17:18:55 +10:00
parent b8a22eaa28
commit e9c4bd0bb8

View file

@ -530,12 +530,21 @@ Item {
}
}
AnimatedImage {
Item {
id: bongocat
anchors.verticalCenter: parent.verticalCenter
anchors.left: details.right
anchors.leftMargin: Appearance.spacing.large
anchors.leftMargin: Appearance.spacing.normal
implicitWidth: visualiser.width
implicitHeight: visualiser.height
AnimatedImage {
anchors.centerIn: parent
width: visualiser.width * 0.75
height: visualiser.height * 0.75
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false)
speed: BeatDetector.bpm / 300
@ -543,7 +552,7 @@ Item {
asynchronous: true
fillMode: AnimatedImage.PreserveAspectFit
}
}
component Control: StyledRect {
id: control