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>
pull/18/head
Mavridis Philippe 3 years ago
parent 037b7019e8
commit 67e995b6fc
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -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() );
}
}
}

Loading…
Cancel
Save