File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -59,3 +59,26 @@ 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
+ case Pinetime::Controllers::SimpleWeatherService::Icons::Clouds:
69
+ case Pinetime::Controllers::SimpleWeatherService::Icons::BrokenClouds:
70
+ return " Clouds" ;
71
+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudShowerHeavy:
72
+ return " Rain" ;
73
+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudSunRain:
74
+ return " Drizzle" ;
75
+ case Pinetime::Controllers::SimpleWeatherService::Icons::Thunderstorm:
76
+ return " Thunder" ;
77
+ case Pinetime::Controllers::SimpleWeatherService::Icons::Snow:
78
+ return " Snow" ;
79
+ case Pinetime::Controllers::SimpleWeatherService::Icons::Smog:
80
+ return " Mist" ;
81
+ default :
82
+ return " " ;
83
+ }
84
+ }
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