dashboard: center media pane
This commit is contained in:
parent
b8a22eaa28
commit
e9c4bd0bb8
1 changed files with 17 additions and 8 deletions
|
|
@ -530,12 +530,21 @@ 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
|
||||||
|
|
||||||
|
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)
|
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false)
|
||||||
speed: BeatDetector.bpm / 300
|
speed: BeatDetector.bpm / 300
|
||||||
|
|
@ -543,7 +552,7 @@ Item {
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
fillMode: AnimatedImage.PreserveAspectFit
|
fillMode: AnimatedImage.PreserveAspectFit
|
||||||
}
|
}
|
||||||
|
}
|
||||||
component Control: StyledRect {
|
component Control: StyledRect {
|
||||||
id: control
|
id: control
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue