From e62c64859c5fb6b64d4e9538646aa0c2f82a2c2c Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 1 Nov 2020 19:57:27 +0000 Subject: [PATCH] =?UTF-8?q?Launcher=20FirstRun:=20add=20=E2=80=98scroll=20?= =?UTF-8?q?to=20bottom=E2=80=99=20hint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/GUI/assets/icons8-scroll-down-50.png | Bin 0 -> 939 bytes src/GUI/qml/FirstRun.qml | 8 ++++++ src/GUI/qml/ScrollToBottomHint.qml | 33 +++++++++++++++++++++++ src/GUI/resources.qrc | 2 ++ 4 files changed, 43 insertions(+) create mode 100644 src/GUI/assets/icons8-scroll-down-50.png create mode 100644 src/GUI/qml/ScrollToBottomHint.qml diff --git a/src/GUI/assets/icons8-scroll-down-50.png b/src/GUI/assets/icons8-scroll-down-50.png new file mode 100644 index 0000000000000000000000000000000000000000..3ab9b4a236a408d57d6c6aec32a366561561d5b9 GIT binary patch literal 939 zcmV;c162HpP)vvc&_ir8}!Pk zcpL8u>MZaLuzAB*V7>MLn}AO<*t!fXM8uK$z$lPIz{43F6A>}6X%2h9x4^v-ak1LD zss1hXF)~4Pq+P%>_0Dw}QI7!k=knS?MgUF#J0jvj*)fz6bq^UKI@B$|6V;CT)Y?C} zSd#U0^^Q%6$^;1Vzs5ocjIBlnRRqGL?~d&`3=$in1fN!CMUqYARK zhd@#_S2n63vpocosyoU?738KK0!h_O*{FhS=^>C*ZC0;>VUVewf=SgB41=up6iA9L zMZ`H6207bPFezFt8�wEsZ?@>;{%voVx_fQ&cD0Xf5U{NZaz|`H1)u*vH0TmVkW` z@fC2srSI?8^;lH-+Gt6=dtl>E^<;IhVt?E@r&{`cwh3ffz0lI&NSFqYTo9_aH|EK- zT5cmu4J0STcOxg9`c#79ra(_tZ0CefeQ_MfHR|a^2WK1Rp#gR`~FWXy!>vbybWK?Y8r%-~Rqz~={_91yAp{t-k4 z=DkdgbLwM9)PF~Aq*zqHk5O5?^sLhq6~ftwWM%|r$ErwyXs_#z_;;6+72>GRk`n>vkhX8-5 zFRR@zz111@O^Zi`T)L>ft=`%>Km*V=^`QD=0>CfoYwB$&v1Hkhx7gUfhhmku0Ne#^ z2kL)bQtWLkQf$S21RRZs%c(JR_TGnjHLw+!rnt?o0Lu~4c3J!1&|iv@8dnq= (flick.contentHeight - flick.height) + timeout: 10 * 1000 + } } // of Item diff --git a/src/GUI/qml/ScrollToBottomHint.qml b/src/GUI/qml/ScrollToBottomHint.qml new file mode 100644 index 000000000..67cfe9cb9 --- /dev/null +++ b/src/GUI/qml/ScrollToBottomHint.qml @@ -0,0 +1,33 @@ +import QtQuick 2.4 +import QtQml 2.4 + +Item { + id: root + property alias timeout: showTimeout.interval + + property bool atTheBottom: false + property bool didTimeout: false + + opacity: didTimeout && !atTheBottom + + width: image.width + height: image.height + + Timer { + id: showTimeout + running: true + onTriggered: didTimeout = true; + } + + Behavior on opacity { + NumberAnimation { + duration: 800 + easing: Easing.InOutQuad + } + } + + Image { + id: image + source: "qrc:///scroll-down-icon-white" + } +} diff --git a/src/GUI/resources.qrc b/src/GUI/resources.qrc index 2978cbb6c..37b4ed963 100644 --- a/src/GUI/resources.qrc +++ b/src/GUI/resources.qrc @@ -30,6 +30,7 @@ assets/toolbox-addons.png assets/toolbox-help.png assets/icons8-back-arrow-50.png + assets/icons8-scroll-down-50.png qml/AircraftList.qml qml/AircraftRating.qml qml/ArrowButton.qml @@ -143,6 +144,7 @@ qml/DidMigrateOfficialCatalogNotification.qml qml/DidMigrateOtherCatalogNotification.qml qml/BackButton.qml + qml/ScrollToBottomHint.qml assets/preview-close.png