Fade the grid view out when downloading posts

This commit is contained in:
Luca Beltrame 2015-02-22 21:56:15 +01:00
parent 10ba382498
commit d9db707e7c

View file

@ -46,10 +46,12 @@ Rectangle {
}
onDownloadFinished: {
grid.opacity = 1
runningIndicator.running = false
}
onDownloadStarted: {
grid.opacity = 0.5
runningIndicator.running = true
}
@ -124,6 +126,7 @@ Rectangle {
iconName: "view-preview"
visible: opacity > 0
opacity: 0
tooltip: i18n("View in image viewer")
anchors.top: parent.top
anchors.left: parent.left
@ -152,6 +155,7 @@ Rectangle {
iconName: "download"
visible: opacity > 0
opacity: 0
tooltip: i18n("Download image")
anchors.bottom: parent.bottom
anchors.left: parent.left
@ -237,6 +241,13 @@ Rectangle {
NumberAnimation { property: "opacity"; from: 0; to: 1; duration: 250}
}
Behavior on opacity {
NumberAnimation {
duration: 200
}
}
}
}