Make modules show less, and better readability.
This commit is contained in:
parent
fe11f6c655
commit
d6a8f3ecc3
@ -12,7 +12,7 @@ function SysTray() {
|
|||||||
|
|
||||||
return <box className="SysTray">
|
return <box className="SysTray">
|
||||||
{bind(tray, "items").as(items => items.map(item => (
|
{bind(tray, "items").as(items => items.map(item => (
|
||||||
<menubutton
|
<menubutton visible={item.title != "Wayland to X11 Video bridge"}
|
||||||
tooltipMarkup={bind(item, "tooltipMarkup")}
|
tooltipMarkup={bind(item, "tooltipMarkup")}
|
||||||
usePopover={false}
|
usePopover={false}
|
||||||
actionGroup={bind(item, "actionGroup").as(ag => ["dbusmenu", ag])}
|
actionGroup={bind(item, "actionGroup").as(ag => ["dbusmenu", ag])}
|
||||||
@ -29,7 +29,7 @@ function Wifi() {
|
|||||||
|
|
||||||
return <box visible={wifi.as(Boolean)}>
|
return <box visible={wifi.as(Boolean)}>
|
||||||
{wifi.as(wifi => wifi && (
|
{wifi.as(wifi => wifi && (
|
||||||
<icon
|
<icon visible={wifi.ssid != null}
|
||||||
tooltipText={bind(wifi, "ssid").as(String)}
|
tooltipText={bind(wifi, "ssid").as(String)}
|
||||||
className="Wifi"
|
className="Wifi"
|
||||||
icon={bind(wifi, "iconName")}
|
icon={bind(wifi, "iconName")}
|
||||||
@ -59,7 +59,7 @@ function BatteryLevel() {
|
|||||||
visible={bind(bat, "isPresent")}>
|
visible={bind(bat, "isPresent")}>
|
||||||
<icon icon={bind(bat, "batteryIconName")} />
|
<icon icon={bind(bat, "batteryIconName")} />
|
||||||
<label label={bind(bat, "percentage").as(p =>
|
<label label={bind(bat, "percentage").as(p =>
|
||||||
`${Math.floor(p * 100)} %`
|
` ${Math.floor(p * 100)} %`
|
||||||
)} />
|
)} />
|
||||||
</box>
|
</box>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user