diff options
Diffstat (limited to 'desktop/modules/sound/Osd.qml')
| -rw-r--r-- | desktop/modules/sound/Osd.qml | 14 |
1 files changed, 12 insertions, 2 deletions
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 + } } } } |
