diff options
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. |
