diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-27 22:08:44 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-27 22:08:44 +1100 |
| commit | e06e29eeab642908c2c976637e46f582602a8e1b (patch) | |
| tree | 20daadff4599fd5e5e7345557a41cce901d15c95 /src/modules/popdowns | |
| parent | sideright: make popdown window (diff) | |
| download | caelestia-shell-e06e29eeab642908c2c976637e46f582602a8e1b.tar.gz caelestia-shell-e06e29eeab642908c2c976637e46f582602a8e1b.tar.bz2 caelestia-shell-e06e29eeab642908c2c976637e46f582602a8e1b.zip | |
sideright: imperial weather
Diffstat (limited to 'src/modules/popdowns')
| -rw-r--r-- | src/modules/popdowns/sideright.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/popdowns/sideright.tsx b/src/modules/popdowns/sideright.tsx index 86c0547..7dc1688 100644 --- a/src/modules/popdowns/sideright.tsx +++ b/src/modules/popdowns/sideright.tsx @@ -75,7 +75,7 @@ const Weather = () => { /> <box vertical halign={Gtk.Align.CENTER} valign={Gtk.Align.CENTER} className="status"> <box halign={Gtk.Align.CENTER} className="temperature"> - <label label={bind(weather, "temperature").as(t => `${Math.round(t)}°C`)} /> + <label label={bind(weather, "temperature")} /> <label className={bind(weather, "tempColour").as(c => `temp-icon ${c}`)} label={bind(weather, "tempIcon")} @@ -84,8 +84,8 @@ const Weather = () => { <label label={bind(weather, "condition").as(c => ellipsize(c, 16))} /> </box> <box vertical halign={Gtk.Align.END} valign={Gtk.Align.CENTER} className="other-data"> - <label xalign={0} label={bind(weather, "wind").as(w => ` ${Math.round(w)} kph`)} /> - <label xalign={0} label={bind(weather, "rainChance").as(r => ` ${r}%`)} /> + <label xalign={0} label={bind(weather, "wind").as(w => ` ${w}`)} /> + <label xalign={0} label={bind(weather, "rainChance").as(r => ` ${r}`)} /> </box> </centerbox> <box className="separator" /> @@ -101,12 +101,12 @@ const Weather = () => { <label className="icon" label={bind(weather, "raw").as(r => - weather.getIcon(weather.forecast[getHoursFromUpdate(r, i + 1)]?.condition.text ?? "") + weather.getIcon(weather.forecast[getHoursFromUpdate(r, i + 1)].condition.text) )} /> <label - label={bind(weather, "raw").as( - r => `${Math.round(weather.forecast[getHoursFromUpdate(r, i + 1)]?.temp_c) ?? "-"}°C` + label={bind(weather, "raw").as(r => + weather.getTemp(weather.forecast[getHoursFromUpdate(r, i + 1)]) )} /> </box> |