feat: add icons

This commit is contained in:
tux
2025-06-09 20:20:32 +05:30
parent 41b9b18436
commit f15a6a483d
15 changed files with 34 additions and 21 deletions

View File

@@ -5,11 +5,10 @@ export const Battery = () => {
const battery = AstalBattery.get_default();
return (
<box cssClasses={["pill"]} visible={bind(battery, "isPresent")}>
<box cssClasses={["pill"]} visible={bind(battery, "isPresent")} spacing={5}>
<image iconName="fa-battery-full-symbolic" />
<label
label={bind(battery, "percentage").as(
(p) => `B: ${Math.floor(p * 100)}%`,
)}
label={bind(battery, "percentage").as((p) => `${Math.floor(p * 100)}%`)}
/>
</box>
);