fancier anim

This commit is contained in:
Marco Martin 2019-10-04 16:37:51 +02:00
parent 5a4fdc5a40
commit 851d17a03d
2 changed files with 13 additions and 4 deletions

View file

@ -82,7 +82,7 @@ NanoShell.FullScreenOverlay {
easing.type: Easing.InOutQuad
properties: "offset"
from: window.offset
to: 0
to: -headerHeight
}
ScriptAction {
script: {

View file

@ -217,19 +217,28 @@ PlasmaCore.ColorScope {
openThreshold: units.gridUnit * 10
headerHeight: root.height
contentItem: ColumnLayout {
contentItem: Item {
id: panelContents
anchors.fill: parent
implicitWidth: quickSettingsParent.implicitWidth
implicitHeight: quickSettingsParent.implicitHeight
DrawerBackground {
Layout.fillWidth: true
id: quickSettingsParent
anchors.fill: parent
z: 1
contentItem: QuickSettings {
id: quickSettings
}
}
DrawerBackground {
Layout.fillWidth: true
anchors {
left: parent.left
right: parent.right
}
y: quickSettingsParent.height - height * (1-opacity)
opacity: slidingPanel.offset/panelContents.height
contentItem: Item {
id: notificationsParent