Add shift activated text (Fix #22)

This adds the text 'shift' when the shift key is activated. No functionality changes were made.
This commit is contained in:
mateoconlechuga
2017-09-01 19:29:00 -06:00
parent 88630addd4
commit ae3e989314
6 changed files with 26 additions and 20 deletions

View File

@@ -0,0 +1,24 @@
#ifndef APPS_ALPHA_LOCK_VIEW_H
#define APPS_ALPHA_LOCK_VIEW_H
#include <escher.h>
#include "lock_view.h"
#include "i18n.h"
class AlphaLockView : public View {
public:
AlphaLockView();
void drawRect(KDContext * ctx, KDRect rect) const override;
bool setStatus(Ion::Events::ShiftAlphaStatus status);
KDSize minimalSizeForOptimalDisplay() const override;
private:
constexpr static KDCoordinate k_lockRightMargin = 5;
int numberOfSubviews() const override;
void layoutSubviews() override;
View * subviewAtIndex(int index) override;
LockView m_lockView;
MessageTextView m_modifierView;
Ion::Events::ShiftAlphaStatus m_status;
};
#endif