File tree 2 files changed +26
-0
lines changed
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::
35
35
}
36
36
}
37
37
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
+
38
63
const char * Pinetime::Applications::Screens::Symbols::GetSimpleCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon) {
39
64
switch (icon) {
40
65
case Pinetime::Controllers::SimpleWeatherService::Icons::Sun:
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ namespace Pinetime {
7
7
namespace Screens {
8
8
namespace Symbols {
9
9
const char * GetSymbol (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
10
+ const char * GetCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
10
11
const char * GetSimpleCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
11
12
}
12
13
}
You can’t perform that action at this time.
0 commit comments