Fixed weather icon
This commit is contained in:
parent
5b6ffc0763
commit
99f8b23ad0
3
eww.css
3
eww.css
@ -142,3 +142,6 @@ tooltip {
|
||||
border-radius: 4px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.panel_mini_widg.panel_ico.panel_weather_ico {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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}"
|
||||
)
|
||||
)
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user