fix(slint): correct BP marking and widen the output-device list

The BP badge marked every ALSA device; it now marks only the direct
hardware PCMs (hw:/front:/iec958:/hdmi:), matching Tauri — sysdefault
and plug devices are not bit-perfect. The device list also opens at
480px (right-anchored) so the full card + PCM id name is readable
instead of being elided in a 300px control.

cc
This commit is contained in:
vicrodh committed 2026-05-19 00:03:06 -06:00
1 parent 9cf2c5588f
commit 87cf74764c
3 files changed
+26 -6

No files matched your search

@@ -95,6 +95,9 @@ export component AudioSettings inherits VerticalLayout {
description: @tr("The DAC or sound device that receives audio.");
QbzSelect {
menu-width: 300px;
// Device labels run long; open the list wider so the full
// name (card + ALSA PCM id) is readable.
popup-width: 480px;
options: SettingsState.devices;
badges: SettingsState.device-bp;
current-index: SettingsState.device-index;