1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 22:45:38 -05:00

Control center improvements

This commit is contained in:
bbedward
2025-07-12 15:05:18 -04:00
parent db05496dca
commit 589f3f1907
3 changed files with 53 additions and 41 deletions

View File

@@ -34,7 +34,14 @@ PanelWindow {
Rectangle {
width: Math.min(600, parent.width - Theme.spacingL * 2)
height: Math.min(500, parent.height - Theme.barHeight - Theme.spacingS * 2)
height: {
let baseHeight = Math.min(500, parent.height - Theme.barHeight - Theme.spacingS * 2)
// Expand container when power menu is open
if (controlCenterPopup.powerOptionsExpanded) {
baseHeight += 70 // Extra space for power options
}
return baseHeight
}
x: Math.max(Theme.spacingL, parent.width - width - Theme.spacingL)
y: Theme.barHeight + Theme.spacingXS
color: Theme.surfaceContainer
@@ -59,6 +66,13 @@ PanelWindow {
}
}
Behavior on height {
NumberAnimation {
duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing
}
}
Column {
anchors.fill: parent
anchors.margins: Theme.spacingL