-
-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split declaration and implementation of GetSymbol
- Loading branch information
1 parent
264b5be
commit 034d83f
Showing
3 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "displayapp/screens/WeatherSymbols.h" | ||
|
||
const char* Pinetime::Applications::Screens::Symbols::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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters