Reformatted all the files according to clang-format style
This commit is contained in:
@@ -4,10 +4,14 @@
|
||||
using namespace Pinetime::Applications::Screens;
|
||||
|
||||
const char* BatteryIcon::GetBatteryIcon(int batteryPercent) {
|
||||
if(batteryPercent > 90) return Symbols::batteryFull;
|
||||
if(batteryPercent > 75) return Symbols::batteryThreeQuarter;
|
||||
if(batteryPercent > 50) return Symbols::batteryHalf;
|
||||
if(batteryPercent > 25) return Symbols::batteryOneQuarter;
|
||||
if (batteryPercent > 90)
|
||||
return Symbols::batteryFull;
|
||||
if (batteryPercent > 75)
|
||||
return Symbols::batteryThreeQuarter;
|
||||
if (batteryPercent > 50)
|
||||
return Symbols::batteryHalf;
|
||||
if (batteryPercent > 25)
|
||||
return Symbols::batteryOneQuarter;
|
||||
return Symbols::batteryEmpty;
|
||||
}
|
||||
|
||||
@@ -15,8 +19,9 @@ const char* BatteryIcon::GetUnknownIcon() {
|
||||
return Symbols::batteryEmpty;
|
||||
}
|
||||
|
||||
const char *BatteryIcon::GetPlugIcon(bool isCharging) {
|
||||
if(isCharging)
|
||||
const char* BatteryIcon::GetPlugIcon(bool isCharging) {
|
||||
if (isCharging)
|
||||
return Symbols::plug;
|
||||
else return "";
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user