summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-10-22 15:24:30 (GMT)
committerAleix Pol <aleixpol@kde.org>2015-10-22 15:24:30 (GMT)
commitac8915c0d99d928bc69818d90ffd65681a58569f (patch)
treec1654f5c89198e124fd307f8057a25a5e5e353b0
parent912c380f9655d02629a7736d3b129b6acfc55256 (diff)
Desaturate non-current items in the carroussel
-rw-r--r--discover/qml/FeaturedBanner.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/discover/qml/FeaturedBanner.qml b/discover/qml/FeaturedBanner.qml
index 110a444..d8ccb09 100644
--- a/discover/qml/FeaturedBanner.qml
+++ b/discover/qml/FeaturedBanner.qml
@@ -102,5 +102,18 @@ Information {
color: "#80000000"
source: flick
}
+
+ Desaturate {
+ anchors.fill: flick
+ source: flick
+ desaturation: parent.PathView.isCurrentItem ? 0 : 0.8
+
+ Behavior on desaturation {
+ NumberAnimation {
+ duration: 500
+ easing.type: Easing.InQuad
+ }
+ }
+ }
}
}