💥 fix(bar/status): use icon property of volumeStatus() for icon name instead of nerd font glyph

This commit is contained in:
retrozinndev
2025-06-03 21:10:35 -03:00
parent 0a10e8a69c
commit 0ae60fa6f5
+5 -4
View File
@@ -18,6 +18,7 @@ export function Status(): Gtk.Widget {
Object.hasOwn(openWins, "control-center") ? "open status" : "status"),
onClick: () => Windows.toggle("control-center"),
child: new Widget.Box({
spacing: 5,
children: [
volumeStatus({
className: "sink",
@@ -46,12 +47,12 @@ function volumeStatus(props: { className?: string, endpoint: AstalWp.Endpoint, i
:
Wireplumber.getDefault().increaseEndpointVolume(props.endpoint, 5),
child: new Widget.Box({
spacing: 2,
children: [
new Widget.Label({
className: "nf",
new Widget.Icon({
visible: props.icon,
label: props.icon,
} as Widget.LabelProps),
icon: props.icon,
} as Widget.IconProps),
new Widget.Label({
className: "volume",
label: bind(props.endpoint, "volume").as((volume: number) =>