diff options
Diffstat (limited to 'src/modules/popdowns/bluetoothdevices.tsx')
| -rw-r--r-- | src/modules/popdowns/bluetoothdevices.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/popdowns/bluetoothdevices.tsx b/src/modules/popdowns/bluetoothdevices.tsx index f41516a..7ba421c 100644 --- a/src/modules/popdowns/bluetoothdevices.tsx +++ b/src/modules/popdowns/bluetoothdevices.tsx @@ -1,11 +1,16 @@ import { bind, Variable } from "astal"; -import { Gtk } from "astal/gtk3"; +import { Astal, Gtk } from "astal/gtk3"; import AstalBluetooth from "gi://AstalBluetooth"; import PopdownWindow from "../../widgets/popdownwindow"; const BluetoothDevice = (device: AstalBluetooth.Device) => ( <box className="device"> - <icon className="icon" icon={bind(device, "icon").as(i => `${i}-symbolic`)} /> + <icon + className="icon" + icon={bind(device, "icon").as(i => + Astal.Icon.lookup_icon(`${i}-symbolic`) ? `${i}-symbolic` : "bluetooth-symbolic" + )} + /> <label truncate xalign={0} |