aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/Drawer.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-16 09:58:33 +0200
committerDanilo M. <danix@danix.xyz>2026-10-16 09:58:33 +0200
commit23f1fde76647ecadac0f17bf2f87195cc2ea3c14 (patch)
treef544795be3e611ff35f9dcf6cec0f495b6c10626 /desktop/Drawer.qml
parent5fabbeb09aea782b7df05e8827b552e5ec44cf83 (diff)
downloadquickshell-23f1fde76647ecadac0f17bf2f87195cc2ea3c14.tar.gz
quickshell-23f1fde76647ecadac0f17bf2f87195cc2ea3c14.zip
feat(desktop): a greeting row above the notifications
Avatar, Hello <login> and the real name, re-read whenever the grid view shows again so an edit is visible on the way back from the page. Module gains tiled, so a module can own a page without a tile. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/Drawer.qml')
-rw-r--r--desktop/Drawer.qml11
1 files changed, 9 insertions, 2 deletions
diff --git a/desktop/Drawer.qml b/desktop/Drawer.qml
index 92c4fca..72aa4d8 100644
--- a/desktop/Drawer.qml
+++ b/desktop/Drawer.qml
@@ -13,6 +13,7 @@ import Quickshell
import Quickshell.Io
import Quickshell.Wayland
import QtQuick
+import "modules/user"
Scope {
id: root
@@ -165,9 +166,15 @@ Scope {
// 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.
+ UserRow {
+ id: user
+ anchors { top: parent.top; left: parent.left; right: parent.right }
+ onClicked: root.show("user")
+ }
+
NotificationList {
id: notifications
- anchors { top: parent.top; left: parent.left; right: parent.right }
+ anchors { top: user.bottom; topMargin: 12; left: parent.left; right: parent.right }
anchors.bottom: tiles.top
anchors.bottomMargin: 16
onHistory: root.history = true
@@ -191,7 +198,7 @@ Scope {
spacing: 10
Repeater {
- model: root.modules
+ model: root.modules.filter(m => m.tiled)
Tile {
required property QtObject modelData