aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/Module.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-16 11:18:31 +0200
committerDanilo M. <danix@danix.xyz>2026-10-16 11:18:31 +0200
commit31a6293e982e212ea5136659dcccce271fe37be1 (patch)
treea4e013f5a3298f5af0c7bcea001637423cdc2eac /desktop/Module.qml
parentb81fe900056e4c14738d4ceb4e2dfe80ae2e4bff (diff)
downloadquickshell-31a6293e982e212ea5136659dcccce271fe37be1.tar.gz
quickshell-31a6293e982e212ea5136659dcccce271fe37be1.zip
feat(desktop): pages can open other pages and step back to them
Page gains go(name), wired to the drawer's show(). Module gains up, the page back() returns to, empty for the grid as before. The back arrow now calls back() instead of clearing the page itself, so the arrow, Escape and the mouse's back button agree. For the git page, opened from the user page. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/Module.qml')
-rw-r--r--desktop/Module.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/Module.qml b/desktop/Module.qml
index 2ce2939..50b4235 100644
--- a/desktop/Module.qml
+++ b/desktop/Module.qml
@@ -42,6 +42,10 @@ QtObject {
// some other way: the user page opens from the drawer's header row.
property bool tiled: true
+ // The page back() returns to from this module's page. Empty is the grid.
+ // The git page sets "user", the page it is opened from.
+ property string up: ""
+
// Rendered inside the tile, below the icon: a short state line. Null for
// a tile that says nothing beyond its label.
property Component tileContent: null