summaryrefslogtreecommitdiffstats
path: root/kweather/weather_icon.cpp
Commit message (Collapse)AuthorAgeFilesLines
* KWeather: improve icon loading and other fixesMavridis Philippe2023-06-141-71/+54
| | | | | | | | | | | | | - Fix pixelated icons (issue #19) - Fix "network offline" state - Add helper `bool weatherDataAvailable(TQString stationID)` DCOP function - Fix compatibility with old DCOP function signatures - Prevent double "Network is offline" strings in weather data. This commit introduces some new and renamed DCOP calls. Old function signatures are kept for compatibility, but are mraked as deprecated. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Refine kdDebug() calls according to recommendations.Mavridis Philippe2022-01-141-5/+5
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Implemented icon theme option.Mavridis Philippe2022-01-141-43/+89
| | | | | | | | | | | | | Changes in this commit include: * The option itself; * A method of updating the option right after Apply or Ok is pressed in the settings dialog; * A new WeatherIconPrivate class to store the methods previously in WeatherIcons, as well as the settings; * Improved icon name helper function in METAR parser; * A few cleanups to the WeatherIcon class. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* KWeather: Added fallbacks to "weather-snow"Mavridis Philippe2022-01-141-1/+7
| | | | | | | For themes missing the (specified by XDG) weather-snow-scattered icon. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* KWeather: improved fallback mechanism.Mavridis Philippe2022-01-141-64/+292
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* KWeather: Use brackets block for better readabilityMavridis Philippe2022-01-141-0/+2
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* KWeather: Better icon name string handling.Mavridis Philippe2022-01-141-7/+14
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* KWeather: support for weather icons from icon theme.Mavridis Philippe2022-01-141-2/+2
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* KWeather: updated icon handling.Mavridis Philippe2022-01-141-0/+171
The newly added class abstracts away icon names from the main code and has the ability to fall back to "safer" icon choices so as to ensure (if possible) icon theme consistency. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>