mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
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:
24
apps/shift_alpha_lock_view.h
Normal file
24
apps/shift_alpha_lock_view.h
Normal 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
|
||||
Reference in New Issue
Block a user