diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-17 10:24:34 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-17 10:24:34 +0200 |
| commit | 47e60adc756f77b7394e644b047959f57993abfe (patch) | |
| tree | 3c9301d4085b6a1052546f1513510babe68f3166 /desktop/Drawer.qml | |
| parent | f6237208e4854f3f6a8af94d4e157970af123b98 (diff) | |
| download | quickshell-47e60adc756f77b7394e644b047959f57993abfe.tar.gz quickshell-47e60adc756f77b7394e644b047959f57993abfe.zip | |
drawer: the settings gear moves from the grid to the user header
The grid is for quick settings, and the window it opened is the
opposite, so a tile for it sat wrong. The gear now sits at the right of
the user header, a round button that closes the drawer and opens the
settings window on its landing page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/Drawer.qml')
| -rw-r--r-- | desktop/Drawer.qml | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/desktop/Drawer.qml b/desktop/Drawer.qml index 2151547..0458418 100644 --- a/desktop/Drawer.qml +++ b/desktop/Drawer.qml @@ -176,10 +176,38 @@ Scope { UserRow { id: user - anchors { top: parent.top; left: parent.left; right: parent.right } + anchors { top: parent.top; left: parent.left; right: gear.left; rightMargin: 8 } onClicked: root.show("user") } + // The settings window, beside the user header: it is not + // a quick setting, so it is not a tile. + Rectangle { + id: gear + anchors { top: parent.top; right: parent.right; topMargin: (user.height - height) / 2 } + width: 40; height: 40; radius: 20 + color: gearArea.containsMouse ? Qt.alpha(Theme.accent, 0.22) : "transparent" + + Text { + anchors.centerIn: parent + // nf-fa-gear, present in Inconsolata Nerd Font. + text: "\uf013" + font { family: Theme.iconFamily; pixelSize: 20 } + color: Theme.text + } + + MouseArea { + id: gearArea + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onClicked: { + root.close(); + root.settingsWindow?.show(""); + } + } + } + // The notification engine's space. The live queue lists // here while the drawer is open; the balloons stand down // because the drawer flag above is set. |
