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

fix control center positioning

This commit is contained in:
bbedward
2025-08-05 22:04:25 -04:00
parent 7695078cb8
commit e132a754e8
3 changed files with 50 additions and 2 deletions

View File

@@ -678,6 +678,14 @@ PanelWindow {
ControlCenterButton {
isActive: controlCenterPopout.controlCenterVisible
section: {
if (parent && parent.parent === leftSection) return "left";
if (parent && parent.parent === rightSection) return "right";
if (parent && parent.parent === centerSection) return "center";
return "right";
}
popupTarget: controlCenterPopout
parentScreen: root.screen
onClicked: {
controlCenterPopout.triggerScreen = root.screen;
controlCenterPopout.controlCenterVisible = !controlCenterPopout.controlCenterVisible;