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 @@ -59,3 +59,28 @@ const char* Pinetime::Applications::Screens::Symbols::GetCondition(const Pinetim
5959 return " " ;
6060 }
6161}
62+
63+ const char * Pinetime::Applications::Screens::Symbols::GetSimpleCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon) {
64+ switch (icon) {
65+ case Pinetime::Controllers::SimpleWeatherService::Icons::Sun:
66+ return " Clear" ;
67+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudsSun:
68+ return " Clouds" ;
69+ case Pinetime::Controllers::SimpleWeatherService::Icons::Clouds:
70+ return " Clouds" ;
71+ case Pinetime::Controllers::SimpleWeatherService::Icons::BrokenClouds:
72+ return " Clouds" ;
73+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudShowerHeavy:
74+ return " Rain" ;
75+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudSunRain:
76+ return " Drizzle" ;
77+ case Pinetime::Controllers::SimpleWeatherService::Icons::Thunderstorm:
78+ return " Thunder" ;
79+ case Pinetime::Controllers::SimpleWeatherService::Icons::Snow:
80+ return " Snow" ;
81+ case Pinetime::Controllers::SimpleWeatherService::Icons::Smog:
82+ return " Mist" ;
83+ default :
84+ return " " ;
85+ }
86+ }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ namespace Pinetime {
88 namespace Symbols {
99 const char * GetSymbol (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
1010 const char * GetCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
11+ const char * GetSimpleCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
1112 }
1213 }
1314 }
You can’t perform that action at this time.
0 commit comments