feat: update style

This commit is contained in:
tux
2025-06-09 05:00:00 +05:30
parent 72f9c24482
commit 9f7a23809e
8 changed files with 42 additions and 61 deletions

View File

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