fix magiclick color

This commit is contained in:
Terrence
2025-01-24 00:21:42 +08:00
parent d75b01984c
commit 7335362bc1
3 changed files with 9 additions and 25 deletions

View File

@@ -50,6 +50,8 @@ public:
: LcdDisplay(io_handle, panel_handle, backlight_pin, backlight_output_invert,
width, height, offset_x, offset_y, mirror_x, mirror_y, swap_xy,
&font_puhui_30_4, &font_awesome_30_4) {
DisplayLockGuard lock(this);
// 由于屏幕是带圆角的,所以状态栏需要增加左右内边距
lv_obj_set_style_pad_left(status_bar_, LV_HOR_RES * 0.1, 0);
lv_obj_set_style_pad_right(status_bar_, LV_HOR_RES * 0.1, 0);