From 99f8b23ad026b35b7e691255916e024466f36adc Mon Sep 17 00:00:00 2001 From: candifloss Date: Fri, 13 Dec 2024 03:01:22 +0530 Subject: [PATCH] Fixed weather icon --- eww.css | 3 +++ scss/panel/_panel_widgets.scss | 4 ++++ yuck/panel/panel_widgs/panel_weather_ico.yuck | 2 +- yuck/vars/vars.yuck | 3 +++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/eww.css b/eww.css index 84c5c89..5d21952 100644 --- a/eww.css +++ b/eww.css @@ -142,3 +142,6 @@ tooltip { border-radius: 4px; font-size: 15px; } +.panel_mini_widg.panel_ico.panel_weather_ico { + font-size: 22px; +} diff --git a/scss/panel/_panel_widgets.scss b/scss/panel/_panel_widgets.scss index 7b8f3c2..8cf6ee8 100644 --- a/scss/panel/_panel_widgets.scss +++ b/scss/panel/_panel_widgets.scss @@ -57,6 +57,10 @@ @include panel_ico_style("panel_brit_ico", $panel_ico_brit_bg_col); @include panel_ico_style("panel_wifi_ico", $panel_ico_wifi_bg_col); @include panel_ico_style("panel_notif_ico", $panel_ico_notif_bg_col); + &.panel_weather_ico { + font-size: 22px; + //background-color: aqua; + } } } } \ No newline at end of file diff --git a/yuck/panel/panel_widgs/panel_weather_ico.yuck b/yuck/panel/panel_widgs/panel_weather_ico.yuck index 771f60b..a20edf9 100644 --- a/yuck/panel/panel_widgs/panel_weather_ico.yuck +++ b/yuck/panel/panel_widgs/panel_weather_ico.yuck @@ -6,7 +6,7 @@ :height "${h}" :width "${h}" ;:active true - :text "${weather_info.weather[0].icon}" + :text "${weather_icon[weather_info.weather[0].icon]}" :tooltip "${weather_info.weather[0].main} ${weather_info.main.temp}" ) ) \ No newline at end of file diff --git a/yuck/vars/vars.yuck b/yuck/vars/vars.yuck index 44f2083..899f15d 100644 --- a/yuck/vars/vars.yuck +++ b/yuck/vars/vars.yuck @@ -39,6 +39,9 @@ :initial "{\"coord\":{\"lon\":0,\"lat\":0},\"weather\":[{\"id\":0,\"main\":\"Unknown\",\"description\":\"unknown\",\"icon\":\"00d\"},{\"id\":0,\"main\":\"Not available\",\"description\":\"not available\",\"icon\":\"00d\"}],\"base\":\"stations\",\"main\":{\"temp\":0,\"feels_like\":0,\"temp_min\":0,\"temp_max\":0,\"pressure\":0,\"humidity\":0,\"sea_level\":0,\"grnd_level\":0},\"visibility\":0,\"wind\":{\"speed\":0,\"deg\":0},\"rain\":{\"1h\":0},\"clouds\":{\"all\":0},\"dt\":978310800,\"sys\":{\"type\":0,\"id\":0,\"country\":\"UK\",\"sunrise\":978310800,\"sunset\":978310800},\"timezone\":0,\"id\":0,\"name\":\"Unknown\",\"cod\":0}" `sh/values/weather/weather.sh` ) +(defvar weather_icon + "{\"01d\":\"\",\"01n\":\"\",\"02d\":\"\",\"02n\":\"\",\"03d\":\"\",\"03n\":\"\",\"04d\":\"\",\"04n\":\"\",\"09d\":\"\",\"09n\":\"\",\"10d\":\"\",\"10n\":\"\",\"11d\":\"\",\"11n\":\"\",\"13d\":\"\",\"13n\":\"\",\"50d\":\"\",\"50n\":\"\"}" +) ;WIndow managers (deflisten leftwm_state