1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -05:00

powermenu: more intuitive layout

This commit is contained in:
bbedward
2025-11-12 12:08:42 -05:00
parent e3b7360f39
commit da7e599e65
3 changed files with 134 additions and 118 deletions

View File

@@ -27,6 +27,7 @@ DankPopout {
property bool editMode: false
property int expandedWidgetIndex: -1
property var expandedWidgetData: null
property bool powerMenuOpen: powerMenuModalLoader?.item?.shouldBeVisible ?? false
signal lockRequested
@@ -115,6 +116,21 @@ DankPopout {
antialiasing: true
smooth: true
Rectangle {
anchors.fill: parent
color: Qt.rgba(0, 0, 0, 0.6)
radius: parent.radius
visible: root.powerMenuOpen
z: 5000
Behavior on opacity {
NumberAnimation {
duration: 200
easing.type: Easing.OutCubic
}
}
}
Column {
id: mainColumn
width: parent.width - Theme.spacingL * 2