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 @@ -59,3 +59,28 @@ const char* Pinetime::Applications::Screens::Symbols::GetCondition(const Pinetim
59
59
return " " ;
60
60
}
61
61
}
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 {
8
8
namespace Symbols {
9
9
const char * GetSymbol (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
10
10
const char * GetCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
11
+ const char * GetSimpleCondition (const Pinetime::Controllers::SimpleWeatherService::Icons icon);
11
12
}
12
13
}
13
14
}
You can’t perform that action at this time.
0 commit comments