[apps] Alpha Lock icon

Change-Id: Ie5a2f4e6b3fae2e14808430e2207306cae2bd7c2
This commit is contained in:
Émilie Feral
2017-04-26 17:26:34 +02:00
parent dd958dcbd8
commit 4f5b35a4b3
10 changed files with 174 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
#include <escher.h>
#include "battery_view.h"
#include "alpha_lock_view.h"
#include "i18n.h"
class TitleBarView : public View {
@@ -12,9 +13,11 @@ public:
void setTitle(I18n::Message title);
bool setChargeState(Ion::Battery::Charge chargeState);
bool setIsCharging(bool isCharging);
bool setAlphaLockStatus(AlphaLockView::Status status);
void refreshPreferences();
private:
constexpr static KDCoordinate k_batteryRightMargin = 5;
constexpr static KDCoordinate k_alphaRightMargin = 5;
constexpr static KDCoordinate k_preferenceMargin = 3;
constexpr static KDCoordinate k_examIconWidth = 18;
constexpr static KDCoordinate k_examIconHeight = 9;
@@ -24,6 +27,7 @@ private:
View * subviewAtIndex(int index) override;
MessageTextView m_titleView;
BatteryView m_batteryView;
AlphaLockView m_alphaLockView;
BufferTextView m_preferenceView;
ImageView m_examModeIconView;
};