💥 fix(bar/status): use icon property of volumeStatus() for icon name instead of nerd font glyph
This commit is contained in:
@@ -18,6 +18,7 @@ export function Status(): Gtk.Widget {
|
|||||||
Object.hasOwn(openWins, "control-center") ? "open status" : "status"),
|
Object.hasOwn(openWins, "control-center") ? "open status" : "status"),
|
||||||
onClick: () => Windows.toggle("control-center"),
|
onClick: () => Windows.toggle("control-center"),
|
||||||
child: new Widget.Box({
|
child: new Widget.Box({
|
||||||
|
spacing: 5,
|
||||||
children: [
|
children: [
|
||||||
volumeStatus({
|
volumeStatus({
|
||||||
className: "sink",
|
className: "sink",
|
||||||
@@ -46,12 +47,12 @@ function volumeStatus(props: { className?: string, endpoint: AstalWp.Endpoint, i
|
|||||||
:
|
:
|
||||||
Wireplumber.getDefault().increaseEndpointVolume(props.endpoint, 5),
|
Wireplumber.getDefault().increaseEndpointVolume(props.endpoint, 5),
|
||||||
child: new Widget.Box({
|
child: new Widget.Box({
|
||||||
|
spacing: 2,
|
||||||
children: [
|
children: [
|
||||||
new Widget.Label({
|
new Widget.Icon({
|
||||||
className: "nf",
|
|
||||||
visible: props.icon,
|
visible: props.icon,
|
||||||
label: props.icon,
|
icon: props.icon,
|
||||||
} as Widget.LabelProps),
|
} as Widget.IconProps),
|
||||||
new Widget.Label({
|
new Widget.Label({
|
||||||
className: "volume",
|
className: "volume",
|
||||||
label: bind(props.endpoint, "volume").as((volume: number) =>
|
label: bind(props.endpoint, "volume").as((volume: number) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user