From e345f30b3775f43a273c1cfaf36f267088ae497f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 3 Sep 2019 17:52:45 +0200 Subject: [PATCH] translucent favoritestrip when can't be dropped on --- .../package/contents/ui/launcher/FavoriteStrip.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/containments/homescreen2/package/contents/ui/launcher/FavoriteStrip.qml b/containments/homescreen2/package/contents/ui/launcher/FavoriteStrip.qml index e6c4a269..4f301521 100644 --- a/containments/homescreen2/package/contents/ui/launcher/FavoriteStrip.qml +++ b/containments/homescreen2/package/contents/ui/launcher/FavoriteStrip.qml @@ -36,7 +36,16 @@ LauncherContainer { visible: flow.children.length > 0 || launcherDragManager.active + opacity: launcherDragManager.active && plasmoid.nativeInterface.applicationListModel.favoriteCount >= plasmoid.nativeInterface.applicationListModel.maxFavoriteCount ? 0.3 : 1 + height: launcherGrid.cellHeight + topPadding + bottomPadding frame.implicitWidth: launcherGrid.cellWidth * Math.max(1, flow.children.length) + frame.leftPadding + frame.rightPadding + + Behavior on opacity { + OpacityAnimator { + duration: units.longDuration * 4 + easing.type: Easing.InOutQuad + } + } }