From e22d2ccee82b829875fe343cf1be48975174b054 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 15 Oct 2026 11:24:49 +0200 Subject: refactor(island): the controls panel goes Each of its seven tiles opened a drawer page that already existed, and it went unused. SUPER alone will open the drawer instead. Removed with it: the status pill's controls icon, Island.toggleControls, the island IPC target, Controls.js and its test, and the controls list in Prefs. Prefs now holds only the pinned IP; a controls key left in desktop.json is still kept on write, because writes merge into the parsed document. Co-Authored-By: Claude Opus 5.5 --- desktop/island/Island.qml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'desktop/island/Island.qml') diff --git a/desktop/island/Island.qml b/desktop/island/Island.qml index d0d0a49..1807c82 100644 --- a/desktop/island/Island.qml +++ b/desktop/island/Island.qml @@ -38,7 +38,7 @@ PanelWindow { WlrLayershell.namespace: "quickshell-island" WlrLayershell.keyboardFocus: panel !== "" ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None - // "", "sound", "controls", "perf" or "calendar". + // "", "sound", "perf" or "calendar". property string panel: "" // --- reveal and hide ------------------------------------------------- @@ -64,15 +64,6 @@ PanelWindow { else if (!hovered) hideTimer.restart(); } - // The keybind's way in: reveal, and open or close the controls panel. - // Closing goes through onPanelChanged, which starts the hide timer when - // the pointer is elsewhere. - function toggleControls() { - hideTimer.stop(); - shown = true; - panel = panel === "controls" ? "" : "controls"; - } - Timer { id: hideTimer interval: 400 @@ -221,8 +212,6 @@ PanelWindow { onMenuShown: win.menuHeld = true onOpenSound: win.panel = win.panel === "sound" ? "" : "sound" onOpenDrawer: { win.panel = ""; win.drawer.show("sound"); } - onOpenControls: win.toggleControls() onOpenPerf: win.panel = win.panel === "perf" ? "" : "perf" - onOpenPage: page => { win.panel = ""; win.drawer.show(page); } } } -- cgit v1.2.3