From f30008b3d9b813b9fa8c3b31795fbc0f90fa2ccf Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 13 Aug 2020 11:17:06 +0200 Subject: [PATCH] a dark overlay over the main icons --- .../homescreen/package/contents/ui/main.qml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/containments/homescreen/package/contents/ui/main.qml b/containments/homescreen/package/contents/ui/main.qml index c5f1b4b3..e90da886 100644 --- a/containments/homescreen/package/contents/ui/main.qml +++ b/containments/homescreen/package/contents/ui/main.qml @@ -143,6 +143,19 @@ Item { favoriteStrip: favoriteStrip } + Rectangle { + anchors { + left: parent.left + right: parent.right + } + border.color: Qt.rgba(1, 1, 1, 0.5) + radius: units.gridUnit + color: "black" + opacity: 0.4 * Math.min(1, mainFlickable.contentY / (units.gridUnit * 10)) + height: root.height + radius * 2 + y: Math.max(-radius, -mainFlickable.contentY + arrowUpIcon.y - units.smallSpacing) + } + Flickable { id: mainFlickable width: parent.width @@ -152,7 +165,7 @@ Item { //topMargin: plasmoid.availableScreenRect.y bottomMargin: favoriteStrip.height + plasmoid.screenGeometry.height - plasmoid.availableScreenRect.height - plasmoid.availableScreenRect.y } - + //bottomMargin: favoriteStrip.height contentWidth: width contentHeight: flickableContents.height @@ -233,6 +246,7 @@ Item { colorGroup: PlasmaCore.Theme.ComplementaryColorGroup } PlasmaCore.IconItem { + id: arrowUpIcon z: 9 anchors { horizontalCenter: parent.horizontalCenter