Skip to content

Commit c0c3787

Browse files
authored
Merge pull request #1 from petterhs/0.16.0UpdateTwosFix
Fix style formatting in 2048 game
2 parents 969bb8e + 2f1ddad commit c0c3787

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/displayapp/screens/Twos.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,33 @@ Twos::Twos(Pinetime::Applications::DisplayApp *app) : Screen(app) {
2121
lv_style_set_border_width(&style_cell1, LV_STATE_DEFAULT, 3);
2222
lv_style_set_bg_opa(&style_cell1, LV_STATE_DEFAULT, LV_OPA_COVER);
2323
lv_style_set_bg_color(&style_cell1, LV_STATE_DEFAULT, lv_color_hex(0xcdc0b4));
24+
lv_style_set_pad_top(&style_cell1, LV_STATE_DEFAULT, 25);
25+
lv_style_set_text_color(&style_cell1, LV_STATE_DEFAULT, LV_COLOR_BLACK);
2426

2527
lv_style_set_border_color(&style_cell2, LV_STATE_DEFAULT, lv_color_hex(0xbbada0));
2628
lv_style_set_border_width(&style_cell2, LV_STATE_DEFAULT, 3);
2729
lv_style_set_bg_opa(&style_cell2, LV_STATE_DEFAULT, LV_OPA_COVER);
2830
lv_style_set_bg_color(&style_cell2, LV_STATE_DEFAULT, lv_color_hex(0xefdfc6));
31+
lv_style_set_pad_top(&style_cell2, LV_STATE_DEFAULT, 25);
32+
lv_style_set_text_color(&style_cell2, LV_STATE_DEFAULT, LV_COLOR_BLACK);
2933

3034
lv_style_set_border_color(&style_cell3, LV_STATE_DEFAULT, lv_color_hex(0xbbada0));
3135
lv_style_set_border_width(&style_cell3, LV_STATE_DEFAULT, 3);
3236
lv_style_set_bg_opa(&style_cell3, LV_STATE_DEFAULT, LV_OPA_COVER);
3337
lv_style_set_bg_color(&style_cell3, LV_STATE_DEFAULT, lv_color_hex(0xef9263));
38+
lv_style_set_pad_top(&style_cell3, LV_STATE_DEFAULT, 25);
3439

3540
lv_style_set_border_color(&style_cell4, LV_STATE_DEFAULT, lv_color_hex(0xbbada0));
3641
lv_style_set_border_width(&style_cell4, LV_STATE_DEFAULT, 3);
3742
lv_style_set_bg_opa(&style_cell4, LV_STATE_DEFAULT, LV_OPA_COVER);
3843
lv_style_set_bg_color(&style_cell4, LV_STATE_DEFAULT, lv_color_hex(0xf76142));
39-
//lv_style_set_text_color(&style_cell4, LV_STATE_DEFAULT, LV_COLOR_WHITE);
44+
lv_style_set_pad_top(&style_cell4, LV_STATE_DEFAULT, 25);
4045

4146
lv_style_set_border_color(&style_cell5, LV_STATE_DEFAULT, lv_color_hex(0xbbada0));
4247
lv_style_set_border_width(&style_cell5, LV_STATE_DEFAULT, 3);
4348
lv_style_set_bg_opa(&style_cell5, LV_STATE_DEFAULT, LV_OPA_COVER);
4449
lv_style_set_bg_color(&style_cell5, LV_STATE_DEFAULT, lv_color_hex(0x007dc5));
45-
//lv_style_set_text_color(&style_cell5, LV_STATE_DEFAULT, LV_COLOR_WHITE);
50+
lv_style_set_pad_top(&style_cell5, LV_STATE_DEFAULT, 25);
4651

4752
// format grid display
4853

0 commit comments

Comments
 (0)