* Replace weather and power icons with nerdfont icons. * Update power icons for power dropdown menu.
18 lines
597 B
TypeScript
18 lines
597 B
TypeScript
import { Weather } from "lib/types/weather";
|
|
import { Variable } from "types/variable";
|
|
import { getWeatherStatusTextIcon } from "globals/weather.js";
|
|
|
|
export const TodayIcon = (theWeather: Variable<Weather>) => {
|
|
return Widget.Box({
|
|
vpack: "center",
|
|
hpack: "start",
|
|
class_name: "calendar-menu-weather today icon container",
|
|
child: Widget.Label({
|
|
class_name: "calendar-menu-weather today icon txt-icon",
|
|
label: theWeather.bind("value").as((w) => {
|
|
return getWeatherStatusTextIcon(w);
|
|
}),
|
|
})
|
|
})
|
|
};
|