diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-11-17 12:03:36 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2022-01-14 12:37:11 +0200 |
commit | 67e995b6fc4da17811aefb7c8d841c9812e4eec9 (patch) | |
tree | b0fe84f4d83d31185eedc00583868afc36ad72a6 /kweather | |
parent | 037b7019e8efbc99f18a9ad9e7bc8ba6cd7c0abd (diff) | |
download | tdetoys-67e995b6fc4da17811aefb7c8d841c9812e4eec9.tar.gz tdetoys-67e995b6fc4da17811aefb7c8d841c9812e4eec9.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>
Diffstat (limited to 'kweather')
-rw-r--r-- | kweather/weather_icon.cpp | 8 |
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 +} |