From cb3fc1a45cd10d5b0ad7577c6344e2ef11ced2b5 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Thu, 25 Sep 2025 17:18:07 -0400 Subject: [PATCH] Bar: Right clicking the bar will open the ControlCenter --- Modules/Bar/Bar.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Modules/Bar/Bar.qml b/Modules/Bar/Bar.qml index c93140b1..08c1c202 100644 --- a/Modules/Bar/Bar.qml +++ b/Modules/Bar/Bar.qml @@ -70,6 +70,17 @@ Variants { radius: Settings.data.bar.floating ? Style.radiusL : 0 } + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.RightButton + onClicked: function (mouse) { + if (mouse.button === Qt.RightButton) { + controlCenterPanel.toggle(BarService.lookupWidget("ControlCenter")) + mouse.accepted = true + } + } + } + Loader { anchors.fill: parent sourceComponent: (Settings.data.bar.position === "left" || Settings.data.bar.position === "right") ? verticalBarComponent : horizontalBarComponent