diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-14 19:51:32 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-14 19:51:32 +0200 |
| commit | 25e28ce76d1fdfbca56ac0a54bb873510e5c029d (patch) | |
| tree | 4f5ac9a7220898ad179f2c91d3dd8a4c6be9fc0b /desktop/Drawer.qml | |
| parent | 1c2da6975fead84cf3e8e23356d9e364c08ee467 (diff) | |
| download | quickshell-25e28ce76d1fdfbca56ac0a54bb873510e5c029d.tar.gz quickshell-25e28ce76d1fdfbca56ac0a54bb873510e5c029d.zip | |
feat(desktop): show the module glyph in every page title
Page.qml gains an icon rendered before the title, and the drawer binds
it to the loaded module's icon so a module whose glyph changes (network
follows the active link) keeps the header in step.
Diffstat (limited to 'desktop/Drawer.qml')
| -rw-r--r-- | desktop/Drawer.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/Drawer.qml b/desktop/Drawer.qml index aea6855..4ed37d3 100644 --- a/desktop/Drawer.qml +++ b/desktop/Drawer.qml @@ -174,6 +174,16 @@ Scope { // `back` and does not know who hosts it. onLoaded: if (item && item.back) item.back.connect(() => root.page = "") + // The page header shows the module's tile glyph. A Binding, + // not an assignment in onLoaded, so a module whose icon + // changes (network follows the active link) stays in step. + Binding { + target: pageLoader.item + property: "icon" + value: root.current ? root.current.icon : "" + when: pageLoader.item !== null + } + // The page enters from the right: the one piece of motion // in the design, and what makes the drawer read as one // surface rather than a window swapping contents. It is a |
