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,20 +530,29 @@ Item {
} }
} }
AnimatedImage { Item {
id: bongocat id: bongocat
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.left: details.right anchors.left: details.right
anchors.leftMargin: Appearance.spacing.large anchors.leftMargin: Appearance.spacing.normal
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false) implicitWidth: visualiser.width
speed: BeatDetector.bpm / 300 implicitHeight: visualiser.height
source: "root:/assets/bongocat.gif"
asynchronous: true AnimatedImage {
fillMode: AnimatedImage.PreserveAspectFit anchors.centerIn: parent
width: visualiser.width * 0.75
height: visualiser.height * 0.75
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false)
speed: BeatDetector.bpm / 300
source: "root:/assets/bongocat.gif"
asynchronous: true
fillMode: AnimatedImage.PreserveAspectFit
}
} }
component Control: StyledRect { component Control: StyledRect {
id: control id: control