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 easing.type: Easing.InOutQuad
properties: "offset" properties: "offset"
from: window.offset from: window.offset
to: 0 to: -headerHeight
} }
ScriptAction { ScriptAction {
script: { script: {

View file

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