1
0
Fork 0

[UI] Fix controlsBackground when nyancat mode is on.

This commit is contained in:
Kitteh 2018-10-26 19:35:04 +01:00
parent 32e5fdab5e
commit 577a46511c

View file

@ -814,7 +814,7 @@ ApplicationWindow {
Rectangle { Rectangle {
id: controlsBackground id: controlsBackground
height: controlsBar.visible ? controlsBar.height + (progressBar.topPadding * 2) height: controlsBar.visible ? controlsBar.height + progressBackground.height + (progressBar.topPadding * 2)
- (progressBackground.height * 2): 0 - (progressBackground.height * 2): 0
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.left: parent.left anchors.left: parent.left
@ -927,7 +927,6 @@ ApplicationWindow {
anchors.bottomMargin: 0 anchors.bottomMargin: 0
anchors.topMargin: progressBackground.height + handleRect.height anchors.topMargin: progressBackground.height + handleRect.height
bottomPadding: 0 bottomPadding: 0
z: 10
onMoved: { onMoved: {
player.command(["seek", progressBar.value, "absolute"]) player.command(["seek", progressBar.value, "absolute"])
@ -986,7 +985,7 @@ ApplicationWindow {
} }
Rectangle { Rectangle {
id: cachedLength id: cachedLength
z: 100 z: 10
anchors.left: progressLength.right anchors.left: progressLength.right
anchors.leftMargin: progressBar.handle.width / 2 anchors.leftMargin: progressBar.handle.width / 2
//anchors.left: progressBar.handle.horizontalCenter //anchors.left: progressBar.handle.horizontalCenter
@ -1009,10 +1008,9 @@ ApplicationWindow {
color: fun.nyanCat ? "transparent" : "red" color: fun.nyanCat ? "transparent" : "red"
//border.color: "red" //border.color: "red"
AnimatedImage { AnimatedImage {
z: 100
visible: fun.nyanCat visible: fun.nyanCat
paused: progressBar.pressed paused: progressBar.pressed
height: 24 height: 30
id: nyanimation id: nyanimation
anchors.centerIn: parent anchors.centerIn: parent
source: "qrc:/player/icons/nyancat.gif" source: "qrc:/player/icons/nyancat.gif"