Update font and power icon.

This commit is contained in:
Jas Singh
2024-06-23 21:46:18 -07:00
parent 42b8948e48
commit f03443a252
12 changed files with 42 additions and 38 deletions

View File

@@ -26,17 +26,20 @@ const Volume = () => {
};
const volIcn = Widget.Label({
vpack: "center",
label: getIcon(),
class_name: "bar-volume_icon",
});
const volPct = Widget.Label({
label: audio.speaker.bind("volume").as((v) => ` ${Math.floor(v * 100)}%`),
vpack: "center",
label: audio.speaker.bind("volume").as((v) => ` ${Math.floor(v * 100)}%`),
class_name: "bar-volume_percentage",
});
return {
component: Widget.Box({
vpack: "center",
class_name: "volume",
children: [volIcn, volPct],
}),