mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
fancier anim
This commit is contained in:
parent
5a4fdc5a40
commit
851d17a03d
2 changed files with 13 additions and 4 deletions
|
|
@ -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: {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue