Updated weather and power button icons to use text-icons rather than system icons. (#232)

* Replace weather and power icons with nerdfont icons.

* Update power icons for power dropdown menu.
This commit is contained in:
Jas Singh
2024-09-07 13:24:30 -07:00
committed by GitHub
parent 5373c106d2
commit bd573ec4e7
10 changed files with 145 additions and 61 deletions

View File

@@ -4,7 +4,7 @@ import { module } from "../module"
import { inputHandler } from "customModules/utils";
import Gtk from "types/@girs/gtk-3.0/gtk-3.0";
import Button from "types/widgets/button";
import { getWeatherStatusIcon, globalWeatherVar } from "globals/weather";
import { getWeatherStatusTextIcon, globalWeatherVar } from "globals/weather";
const {
label,
@@ -17,10 +17,9 @@ const {
} = options.bar.customModules.weather;
export const Weather = () => {
const networkModule = module({
icon: Utils.merge([globalWeatherVar.bind("value")], (wthr) => {
const weatherStatusIcon = getWeatherStatusIcon(wthr);
const weatherModule = module({
textIcon: Utils.merge([globalWeatherVar.bind("value")], (wthr) => {
const weatherStatusIcon = getWeatherStatusTextIcon(wthr);
return weatherStatusIcon;
}),
tooltipText: globalWeatherVar.bind("value").as(v => `Weather Status: ${v.current.condition.text}`),
@@ -59,7 +58,7 @@ export const Weather = () => {
},
});
return networkModule;
return weatherModule;
}