From 2b9c732f0515bf0f6bb7444e10faddfd1ff4e485 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 30 Nov 2026 17:49:01 +0100 Subject: feat(drawer): one section header across the drawer pages The drawer pages divided their sections with subtext-coloured titles at fontSize - 2 and 1px lines at 0.12 alpha, and the sections ran together. desktop/SectionHeader.qml is the one title now: an accent glyph, a bold label one size up, and a divider at 0.3 with space above it, off for a page's first section. Children sit on the right, anchored to the bottom where the label is, so the Bluetooth and Wi-Fi switches and the sound level/mute control ride in the header. Sound, Bluetooth, Mail, Services and AI use it. Mail had no titles: the unread total moves into an Accounts header, and its first divider becomes a Watcher header. Services drops its import of ../qtmaildir, which was only there for Heading; Heading stays as the settings window's title and is untouched. Every glyph was checked in Inconsolata Nerd Font's cmap. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/mail/MailPage.qml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'desktop/modules/mail/MailPage.qml') diff --git a/desktop/modules/mail/MailPage.qml b/desktop/modules/mail/MailPage.qml index 1b41412..03ce71a 100644 --- a/desktop/modules/mail/MailPage.qml +++ b/desktop/modules/mail/MailPage.qml @@ -67,13 +67,13 @@ Column { onLoadFailed: page.readHeartbeat("") } - Item { - width: parent.width - implicitHeight: totalText.implicitHeight + SectionHeader { + divider: false + glyph: "\uf0e0" + label: "Accounts" Text { - id: totalText - anchors.right: parent.right + anchors { right: parent.right; bottom: parent.bottom } // A dash rather than a possibly-wrong number while any account is // still unknown. text: Accounts.anyUnknown ? "—" : `${Accounts.total} unread` @@ -195,7 +195,7 @@ Column { } } - Rectangle { width: parent.width; height: 1; color: Qt.alpha(Theme.text, 0.12) } + SectionHeader { glyph: "\uf21e"; label: "Watcher" } // Watcher health. Green when idling, yellow when a folder gave up, red // when there is no fresh heartbeat at all. @@ -219,7 +219,7 @@ Column { } } - Rectangle { width: parent.width; height: 1; color: Qt.alpha(Theme.text, 0.12) } + Rectangle { width: parent.width; height: 1; color: Qt.alpha(Theme.text, 0.3) } Row { anchors.right: parent.right -- cgit v1.2.3