From 751d875cad54f68276a91e5a3d6d50c332167561 Mon Sep 17 00:00:00 2001 From: Damocles Date: Tue, 14 Apr 2026 00:52:54 +0200 Subject: [PATCH] volume: always show device list, remove chevron/expand toggle --- modules/Volume.qml | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/modules/Volume.qml b/modules/Volume.qml index 5c67799..b091a43 100644 --- a/modules/Volume.qml +++ b/modules/Volume.qml @@ -38,14 +38,10 @@ M.BarSection { return streams; } - property bool _expanded: false property bool _osdActive: false readonly property bool _anyHover: root._hovered || hoverPanel.panelHovered readonly property bool _showPanel: _anyHover || _osdActive - on_ShowPanelChanged: if (!_showPanel) - _expanded = false - onVolumeChanged: _flashPanel() onMutedChanged: _flashPanel() @@ -180,46 +176,10 @@ M.BarSection { } } - // Sink name + chevron - Item { - width: parent.width - height: 22 - - Text { - anchors.left: parent.left - anchors.right: chevron.left - anchors.leftMargin: 12 - anchors.rightMargin: 4 - anchors.verticalCenter: parent.verticalCenter - text: root.sink?.description ?? root.sink?.name ?? "" - color: M.Theme.base04 - font.pixelSize: M.Theme.fontSize - 2 - font.family: M.Theme.fontFamily - elide: Text.ElideRight - } - - Text { - id: chevron - anchors.right: parent.right - anchors.rightMargin: 12 - anchors.verticalCenter: parent.verticalCenter - text: root._expanded ? "\uF077" : "\uF078" - color: M.Theme.base04 - font.pixelSize: M.Theme.fontSize - 3 - font.family: M.Theme.iconFontFamily - } - - TapHandler { - cursorShape: Qt.PointingHandCursor - onTapped: root._expanded = !root._expanded - } - } - // Device + stream list Column { id: deviceList width: parent.width - visible: root._expanded // Output devices Rectangle { @@ -279,10 +239,7 @@ M.BarSection { } TapHandler { - onTapped: { - Pipewire.preferredDefaultAudioSink = modelData; - root._expanded = false; - } + onTapped: Pipewire.preferredDefaultAudioSink = modelData } } }