From d02e7cc23b7e1ecebf321b176c189369ef9f38c4 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 18 Sep 2026 12:55:15 +0200 Subject: feat(sound): show the active device name in the volume OSD The OSD showed only "Output"/"Input", not which device was in use, so switching between, say, the analogue output and a USB DAC gave no visible confirmation beyond the volume itself. The name falls back description -> nickname -> name, the same order SoundPage.devLabel uses, and elides. The panel height grows to fit the new line. --- desktop/modules/sound/Osd.qml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/modules/sound/Osd.qml b/desktop/modules/sound/Osd.qml index 424b9c3..49a977b 100644 --- a/desktop/modules/sound/Osd.qml +++ b/desktop/modules/sound/Osd.qml @@ -60,9 +60,9 @@ Scope { anchors.bottom: true margins.bottom: 120 - // Grows to fit the track row; the volume-only size is unchanged. + // Grows to fit the track row and the device line. implicitWidth: 360 - implicitHeight: Player.active ? 150 : 72 + implicitHeight: Player.active ? 178 : 100 color: "transparent" exclusionMode: ExclusionMode.Ignore @@ -165,6 +165,16 @@ Scope { Behavior on width { NumberAnimation { duration: 100 } } } } + + // The device the active node represents. Same fallback + // order as SoundPage.devLabel. + Text { + width: parent.width + elide: Text.ElideRight + text: win.node?.description || win.node?.nickname || win.node?.name || "" + font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 2 } + color: Theme.subtext + } } } } -- cgit v1.2.3