File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,31 @@ const char* Pinetime::Applications::Screens::Symbols::GetSymbol(const Pinetime::
3535 }
3636}
3737
38+ const char * Pinetime::Applications::Screens::Symbols::GetCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon) {
39+ switch (icon) {
40+ case Pinetime::Controllers::SimpleWeatherService::Icons::Sun:
41+ return " Clear sky" ;
42+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudsSun:
43+ return " Few clouds" ;
44+ case Pinetime::Controllers::SimpleWeatherService::Icons::Clouds:
45+ return " Scattered clouds" ;
46+ case Pinetime::Controllers::SimpleWeatherService::Icons::BrokenClouds:
47+ return " Broken clouds" ;
48+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudShowerHeavy:
49+ return " Shower rain" ;
50+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudSunRain:
51+ return " Rain" ;
52+ case Pinetime::Controllers::SimpleWeatherService::Icons::Thunderstorm:
53+ return " Thunderstorm" ;
54+ case Pinetime::Controllers::SimpleWeatherService::Icons::Snow:
55+ return " Snow" ;
56+ case Pinetime::Controllers::SimpleWeatherService::Icons::Smog:
57+ return " Mist" ;
58+ default :
59+ return " " ;
60+ }
61+ }
62+
3863const char * Pinetime::Applications::Screens::Symbols::GetSimpleCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon) {
3964 switch (icon) {
4065 case Pinetime::Controllers::SimpleWeatherService::Icons::Sun:
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ namespace Pinetime {
77 namespace Screens {
88 namespace Symbols {
99 const char * GetSymbol (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
10+ const char * GetCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
1011 const char * GetSimpleCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
1112 }
1213 }
You can’t perform that action at this time.
0 commit comments