summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-11-17 12:03:36 +0200
committerMavridis Philippe <mavridisf@gmail.com>2022-01-14 12:37:11 +0200
commit67e995b6fc4da17811aefb7c8d841c9812e4eec9 (patch)
treeb0fe84f4d83d31185eedc00583868afc36ad72a6
parent037b7019e8efbc99f18a9ad9e7bc8ba6cd7c0abd (diff)
downloadtdetoys-67e995b6.tar.gz
tdetoys-67e995b6.zip
KWeather: Added fallbacks to "weather-snow"
For themes missing the (specified by XDG) weather-snow-scattered icon. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
-rw-r--r--kweather/weather_icon.cpp8
1 files changed, 7 insertions, 1 deletions
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
+}