diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-30 17:49:01 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-30 17:49:01 +0100 |
| commit | 2b9c732f0515bf0f6bb7444e10faddfd1ff4e485 (patch) | |
| tree | 98741e0a77391ecdc543ecd688608c67df182a27 /desktop/modules/sound/SoundPage.qml | |
| parent | bed24e616e0cb4c4adb75b0bf8693f62670880b5 (diff) | |
| download | quickshell-2b9c732f0515bf0f6bb7444e10faddfd1ff4e485.tar.gz quickshell-2b9c732f0515bf0f6bb7444e10faddfd1ff4e485.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/sound/SoundPage.qml')
| -rw-r--r-- | desktop/modules/sound/SoundPage.qml | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/desktop/modules/sound/SoundPage.qml b/desktop/modules/sound/SoundPage.qml index 3f39c48..f220b61 100644 --- a/desktop/modules/sound/SoundPage.qml +++ b/desktop/modules/sound/SoundPage.qml @@ -128,22 +128,15 @@ Column { width: page.width spacing: 6 - Item { - width: parent.width - implicitHeight: name.implicitHeight - - Text { - id: name - anchors.left: parent.left - text: modelData.label - font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 1; bold: true } - color: Theme.text - } + SectionHeader { + divider: modelData.label !== "Output" + glyph: String.fromCodePoint(modelData.label === "Output" ? 0xF04C3 : 0xF036C) + label: modelData.label // State glyph and level, clickable to mute/unmute. Row { id: levelRow - anchors { right: parent.right; verticalCenter: parent.verticalCenter } + anchors { right: parent.right; bottom: parent.bottom } spacing: 6 Text { @@ -269,11 +262,7 @@ Column { spacing: 10 visible: page.service.streams.length > 0 - Text { - text: "Applications" - font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 1; bold: true } - color: Theme.text - } + SectionHeader { glyph: String.fromCodePoint(0xF003B); label: "Applications" } Repeater { model: page.service.streams |
