Enlarge touch buttons after serial-calibrated axis fix.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-17 18:02:32 +08:00
parent b09fca956f
commit d874cb192c
4 changed files with 12 additions and 6 deletions

View File

@@ -118,10 +118,10 @@ void ui_create() {
lv_obj_set_style_bg_color(bar_usage, lv_color_hex(0x263238), 0);
lv_obj_set_style_bg_color(bar_usage, lv_color_hex(0x29B6F6), LV_PART_INDICATOR);
// 底部两个触控按钮
// 底部两个大按钮(加大命中区)
lv_obj_t *row_btns = lv_obj_create(col);
lv_obj_set_width(row_btns, LV_PCT(100));
lv_obj_set_height(row_btns, 52);
lv_obj_set_height(row_btns, 64);
lv_obj_set_style_bg_opa(row_btns, LV_OPA_TRANSP, 0);
lv_obj_set_style_border_width(row_btns, 0, 0);
lv_obj_set_style_pad_all(row_btns, 0, 0);
@@ -131,7 +131,7 @@ void ui_create() {
lv_obj_clear_flag(row_btns, LV_OBJ_FLAG_SCROLLABLE);
btn_speaker = lv_button_create(row_btns);
lv_obj_set_size(btn_speaker, 148, 50);
lv_obj_set_size(btn_speaker, 150, 60);
lv_obj_set_style_radius(btn_speaker, 8, 0);
lv_obj_add_flag(btn_speaker, LV_OBJ_FLAG_CLICKABLE);
lv_obj_add_event_cb(btn_speaker, on_speaker_clicked, LV_EVENT_CLICKED, nullptr);
@@ -141,7 +141,7 @@ void ui_create() {
lv_obj_center(lbl_speaker);
btn_play = lv_button_create(row_btns);
lv_obj_set_size(btn_play, 148, 50);
lv_obj_set_size(btn_play, 150, 60);
lv_obj_set_style_radius(btn_play, 8, 0);
lv_obj_add_flag(btn_play, LV_OBJ_FLAG_CLICKABLE);
lv_obj_add_event_cb(btn_play, on_play_clicked, LV_EVENT_CLICKED, nullptr);