mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-11 05:11:55 +05:30
feat: add icons
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
Reference in New Issue
Block a user