ref: fc5424cb72e477c5f1bbfaeddb5c50b851a965ae
src/displayapp/screens/WeatherSymbols.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
#pragma once #include "components/ble/SimpleWeatherService.h" #include "displayapp/screens/Symbols.h" namespace Pinetime { namespace Applications { namespace Screens { namespace Symbols { const char* GetSymbol(const Pinetime::Controllers::SimpleWeatherService::Icons icon) { switch (icon) { case Pinetime::Controllers::SimpleWeatherService::Icons::Sun: return Symbols::sun; break; case Pinetime::Controllers::SimpleWeatherService::Icons::CloudsSun: return Symbols::cloudSun; break; case Pinetime::Controllers::SimpleWeatherService::Icons::Clouds: return Symbols::cloud; break; case Pinetime::Controllers::SimpleWeatherService::Icons::BrokenClouds: return Symbols::cloudMeatball; break; case Pinetime::Controllers::SimpleWeatherService::Icons::Thunderstorm: return Symbols::bolt; break; case Pinetime::Controllers::SimpleWeatherService::Icons::Snow: return Symbols::snowflake; break; case Pinetime::Controllers::SimpleWeatherService::Icons::CloudShowerHeavy: return Symbols::cloudShowersHeavy; break; case Pinetime::Controllers::SimpleWeatherService::Icons::CloudSunRain: return Symbols::cloudSunRain; break; case Pinetime::Controllers::SimpleWeatherService::Icons::Smog: return Symbols::smog; break; default: return Symbols::ban; break; } } } } } } |