From 6be351b5a045e9d100ff4b37942752e8316f2d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9E=97=E5=90=8C=E5=BF=97?= <131573918+smalllin0@users.noreply.github.com> Date: Mon, 9 Feb 2026 19:16:49 +0800 Subject: [PATCH] Adjust jiuchuan-s3 UI (#1747) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复SetupUI接口引入导致的屏幕适配失败问题 * 修正board中屏幕高度错误,调整偏移量 --------- Co-authored-by: smalllin0 Co-authored-by: Xiaoxia --- main/boards/jiuchuan-s3/config.h | 2 +- main/boards/jiuchuan-s3/jiuchuan_dev_board.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/boards/jiuchuan-s3/config.h b/main/boards/jiuchuan-s3/config.h index d689527..914fdf5 100644 --- a/main/boards/jiuchuan-s3/config.h +++ b/main/boards/jiuchuan-s3/config.h @@ -37,7 +37,7 @@ #define DISPLAY_SPI_CS_PIN GPIO_NUM_9 #define DISPLAY_WIDTH 240 -#define DISPLAY_HEIGHT 320 +#define DISPLAY_HEIGHT 296 #define DISPLAY_MIRROR_X true #define DISPLAY_MIRROR_Y false #define DISPLAY_SWAP_XY false diff --git a/main/boards/jiuchuan-s3/jiuchuan_dev_board.cc b/main/boards/jiuchuan-s3/jiuchuan_dev_board.cc index 405a95b..76c522e 100644 --- a/main/boards/jiuchuan-s3/jiuchuan_dev_board.cc +++ b/main/boards/jiuchuan-s3/jiuchuan_dev_board.cc @@ -53,9 +53,9 @@ public: lv_obj_set_style_pad_left(top_bar_, LV_HOR_RES * 0.12, 0); // 左侧填充12% lv_obj_set_style_pad_right(top_bar_, LV_HOR_RES * 0.12, 0); // 右侧填充12% // 表情容器上移适配 - lv_obj_align(emoji_box_, LV_ALIGN_CENTER, 0, -50); // 向上偏移50 + lv_obj_align(emoji_box_, LV_ALIGN_CENTER, 0, -30); // 向上偏移30 // 消息栏适配 - lv_obj_align(bottom_bar_, LV_ALIGN_BOTTOM_MID, 0, -40); // 向上偏移40 + lv_obj_align(bottom_bar_, LV_ALIGN_BOTTOM_MID, 0, -20); // 向上偏移20 } };