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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user