mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
use framesvg
This commit is contained in:
parent
5e5f21a31e
commit
6ef98bdb2d
2 changed files with 16 additions and 16 deletions
|
|
@ -1,10 +1,16 @@
|
|||
import QtQuick 2.0
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
|
||||
Rectangle {
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0.0; color: "#FFEDDF00" }
|
||||
GradientStop { position: 3.0; color: "#00EDDF00" }
|
||||
Item {
|
||||
PlasmaCore.FrameSvgItem {
|
||||
z: -1
|
||||
imagePath: "widgets/background"
|
||||
enabledBorders: PlasmaCore.FrameSvgItem.TopBorder | PlasmaCore.FrameSvgItem.BottomBorder
|
||||
anchors {
|
||||
fill: parent
|
||||
topMargin: -margins.top
|
||||
bottomMargin: -margins.bottom
|
||||
}
|
||||
}
|
||||
|
||||
opacity: 0.6
|
||||
|
|
|
|||
|
|
@ -211,6 +211,12 @@ MouseEventListener {
|
|||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
z: 1
|
||||
color: Qt.rgba(0, 0, 0, 0.7 * (Math.min(applications.contentY + homescreen.height, homescreen.height) / homescreen.height))
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
PlasmaCore.DataSource {
|
||||
id: notificationsSource
|
||||
|
||||
|
|
@ -414,18 +420,6 @@ MouseEventListener {
|
|||
id: appListModel
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
color: Qt.rgba(0, 0, 0, 0.7 * height / homescreen.height)
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
bottom: parent.bottom
|
||||
}
|
||||
height: Math.min(applications.contentY + homescreen.height, homescreen.height)
|
||||
}
|
||||
Text {
|
||||
text: applications.contentY
|
||||
}
|
||||
GridView {
|
||||
id: applications
|
||||
anchors {
|
||||
|
|
|
|||
Loading…
Reference in a new issue