From d9db707e7c612f61e946b1a42d6b5644b386433c Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 22 Feb 2015 21:56:15 +0100 Subject: [PATCH] Fade the grid view out when downloading posts --- src/qml/danbooruimageview.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/qml/danbooruimageview.qml b/src/qml/danbooruimageview.qml index 188e44c..716ca99 100644 --- a/src/qml/danbooruimageview.qml +++ b/src/qml/danbooruimageview.qml @@ -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 + } + } + } }