mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
a dark overlay over the main icons
This commit is contained in:
parent
6cdcd8b56f
commit
f30008b3d9
1 changed files with 15 additions and 1 deletions
|
|
@ -143,6 +143,19 @@ Item {
|
||||||
favoriteStrip: favoriteStrip
|
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 {
|
Flickable {
|
||||||
id: mainFlickable
|
id: mainFlickable
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
@ -152,7 +165,7 @@ Item {
|
||||||
//topMargin: plasmoid.availableScreenRect.y
|
//topMargin: plasmoid.availableScreenRect.y
|
||||||
bottomMargin: favoriteStrip.height + plasmoid.screenGeometry.height - plasmoid.availableScreenRect.height - plasmoid.availableScreenRect.y
|
bottomMargin: favoriteStrip.height + plasmoid.screenGeometry.height - plasmoid.availableScreenRect.height - plasmoid.availableScreenRect.y
|
||||||
}
|
}
|
||||||
|
|
||||||
//bottomMargin: favoriteStrip.height
|
//bottomMargin: favoriteStrip.height
|
||||||
contentWidth: width
|
contentWidth: width
|
||||||
contentHeight: flickableContents.height
|
contentHeight: flickableContents.height
|
||||||
|
|
@ -233,6 +246,7 @@ Item {
|
||||||
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
|
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
|
||||||
}
|
}
|
||||||
PlasmaCore.IconItem {
|
PlasmaCore.IconItem {
|
||||||
|
id: arrowUpIcon
|
||||||
z: 9
|
z: 9
|
||||||
anchors {
|
anchors {
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue