aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/island/Island.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-15 11:24:49 +0200
committerDanilo M. <danix@danix.xyz>2026-10-15 11:24:49 +0200
commite22d2ccee82b829875fe343cf1be48975174b054 (patch)
tree8445170966a2f41a1cc4411c792ac74c97a1ea3d /desktop/island/Island.qml
parent021c2d42271cdda15a4fdf129ce162d8af8a9ab5 (diff)
downloadquickshell-e22d2ccee82b829875fe343cf1be48975174b054.tar.gz
quickshell-e22d2ccee82b829875fe343cf1be48975174b054.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/island/Island.qml')
-rw-r--r--desktop/island/Island.qml13
1 files changed, 1 insertions, 12 deletions
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); }
}
}