From 67e995b6fc4da17811aefb7c8d841c9812e4eec9 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Wed, 17 Nov 2021 12:03:36 +0200 Subject: KWeather: Added fallbacks to "weather-snow" For themes missing the (specified by XDG) weather-snow-scattered icon. Signed-off-by: Mavridis Philippe --- kweather/weather_icon.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kweather/weather_icon.cpp b/kweather/weather_icon.cpp index 05461ee..e358833 100644 --- a/kweather/weather_icon.cpp +++ b/kweather/weather_icon.cpp @@ -240,6 +240,8 @@ WeatherIcon::WeatherIcon( int condition, bool night, unsigned int strength ) fallback << "weather-snow-scattered"; // xdg, kweather + fallback << "weather-snow"; // workaround for some themes + break; } case 2: @@ -266,6 +268,8 @@ WeatherIcon::WeatherIcon( int condition, bool night, unsigned int strength ) fallback << "weather-snow-scattered"; // xdg, kweather + fallback << "weather-snow"; // workaround for some themes + break; } @@ -292,6 +296,8 @@ WeatherIcon::WeatherIcon( int condition, bool night, unsigned int strength ) { fallback << "weather-snow-scattered"; // xdg, kweather + fallback << "weather-snow"; // workaround for some themes + break; } @@ -405,4 +411,4 @@ bool WeatherIcon::iconExists( TQString& icon, bool inTheme ) { return !( locate( "data", "kweather/" + icon + ".png" ).isNull() ); } -} \ No newline at end of file +} -- cgit v1.2.1