Fixed screen height
- corrected the SCREEN_HEIGHT - small graphical changes in OmoteUI to make it look like in the main branch
This commit is contained in:
parent
02ae40e3bf
commit
86cfb5138a
2 changed files with 8 additions and 2 deletions
|
@ -163,7 +163,7 @@ void OmoteUI::layout_UI() {
|
||||||
lv_label_set_text_fmt(buttonLabel, "0", col, row);
|
lv_label_set_text_fmt(buttonLabel, "0", col, row);
|
||||||
lv_obj_set_user_data(obj, (void *)9);
|
lv_obj_set_user_data(obj, (void *)9);
|
||||||
}
|
}
|
||||||
lv_obj_set_style_text_font(buttonLabel, &lv_font_montserrat_14,
|
lv_obj_set_style_text_font(buttonLabel, &lv_font_montserrat_24,
|
||||||
LV_PART_MAIN);
|
LV_PART_MAIN);
|
||||||
lv_obj_center(buttonLabel);
|
lv_obj_center(buttonLabel);
|
||||||
}
|
}
|
||||||
|
@ -190,6 +190,9 @@ void OmoteUI::layout_UI() {
|
||||||
|
|
||||||
appleImg = imgs.addAppleBackIcon(button);
|
appleImg = imgs.addAppleBackIcon(button);
|
||||||
lv_obj_align(appleImg, LV_ALIGN_CENTER, -3, 0);
|
lv_obj_align(appleImg, LV_ALIGN_CENTER, -3, 0);
|
||||||
|
lv_obj_set_style_img_recolor(appleImg, lv_color_white(), LV_PART_MAIN);
|
||||||
|
lv_obj_set_style_img_recolor_opa(appleImg, LV_OPA_COVER, LV_PART_MAIN);
|
||||||
|
lv_obj_align(appleImg, LV_ALIGN_CENTER, -3, 0);
|
||||||
|
|
||||||
button = lv_btn_create(tab3);
|
button = lv_btn_create(tab3);
|
||||||
lv_obj_align(button, LV_ALIGN_BOTTOM_RIGHT, -10, 0);
|
lv_obj_align(button, LV_ALIGN_BOTTOM_RIGHT, -10, 0);
|
||||||
|
@ -202,6 +205,9 @@ void OmoteUI::layout_UI() {
|
||||||
|
|
||||||
appleImg = imgs.addAppleDisplayImage(button);
|
appleImg = imgs.addAppleDisplayImage(button);
|
||||||
lv_obj_align(appleImg, LV_ALIGN_CENTER, 0, 0);
|
lv_obj_align(appleImg, LV_ALIGN_CENTER, 0, 0);
|
||||||
|
lv_obj_set_style_img_recolor(appleImg, lv_color_white(), LV_PART_MAIN);
|
||||||
|
lv_obj_set_style_img_recolor_opa(appleImg, LV_OPA_COVER, LV_PART_MAIN);
|
||||||
|
lv_obj_align(appleImg, LV_ALIGN_CENTER, 0, 0);
|
||||||
|
|
||||||
// Add content to the settings tab
|
// Add content to the settings tab
|
||||||
// With a flex layout, setting groups/boxes will position themselves
|
// With a flex layout, setting groups/boxes will position themselves
|
||||||
|
|
|
@ -35,7 +35,7 @@ build_flags =
|
||||||
;------------ OMOTE Defines -----------------------------------
|
;------------ OMOTE Defines -----------------------------------
|
||||||
; Currently based on the ILI9341_DRIVER
|
; Currently based on the ILI9341_DRIVER
|
||||||
-D SCREEN_WIDTH=240
|
-D SCREEN_WIDTH=240
|
||||||
-D SCREEN_HEIGHT=360
|
-D SCREEN_HEIGHT=320
|
||||||
|
|
||||||
; ------------- Includes ------------------------------------
|
; ------------- Includes ------------------------------------
|
||||||
-I OmoteUI
|
-I OmoteUI
|
||||||
|
|
Loading…
Add table
Reference in a new issue