Reduce duplication in Twos (#1274)
This commit is contained in:
parent
c9a5c3fa5c
commit
c853681d75
2 changed files with 30 additions and 54 deletions
|
|
@ -18,11 +18,8 @@ namespace Pinetime {
|
|||
bool OnTouchEvent(TouchEvents event) override;
|
||||
|
||||
private:
|
||||
lv_style_t style_cell1;
|
||||
lv_style_t style_cell2;
|
||||
lv_style_t style_cell3;
|
||||
lv_style_t style_cell4;
|
||||
lv_style_t style_cell5;
|
||||
static constexpr int nColors = 5;
|
||||
lv_style_t cellStyles[nColors];
|
||||
|
||||
lv_obj_t* scoreText;
|
||||
lv_obj_t* gridDisplay;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue