[AGS] Battery: Improve design
This commit is contained in:
parent
bec7474793
commit
acca70d47f
@ -11,8 +11,9 @@ export const BatteryBox = () => {
|
|||||||
<box
|
<box
|
||||||
cssClasses={["battery-info"]}
|
cssClasses={["battery-info"]}
|
||||||
visible={bind(battery, "isBattery")}
|
visible={bind(battery, "isBattery")}
|
||||||
child={
|
hexpand={false}
|
||||||
<box cssClasses={["battery-box"]}>
|
vexpand={false}
|
||||||
|
>
|
||||||
<image
|
<image
|
||||||
iconName={bind(battery, "batteryIconName")}
|
iconName={bind(battery, "batteryIconName")}
|
||||||
tooltipText={bind(battery, "energyRate").as(er =>
|
tooltipText={bind(battery, "energyRate").as(er =>
|
||||||
@ -30,8 +31,6 @@ export const BatteryBox = () => {
|
|||||||
label={bind(battery, "timeToEmpty").as(t => `(${toTime(t)})`)}
|
label={bind(battery, "timeToEmpty").as(t => `(${toTime(t)})`)}
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
}
|
|
||||||
></box>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user