[apps] Add an battery icon to indicate that the battery is charging

Change-Id: I26c616cc6e39f87d305b7bd0c27433e646d74b05
This commit is contained in:
Émilie Feral
2017-03-20 12:06:39 +01:00
parent 8559e43061
commit 41259e8cbe
7 changed files with 48 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ public:
void drawRect(KDContext * ctx, KDRect rect) const override;
void setTitle(I18n::Message title);
void setChargeState(Ion::Battery::Charge chargeState);
void setIsCharging(bool isCharging);
void refreshPreferences();
private:
constexpr static KDCoordinate k_batteryLeftMargin = 5;