1、禁止速度环点击

This commit is contained in:
asypost committed 2026-05-23 18:48:14 +08:00
1 parent dbdd5ce6db
commit e0154b825d
1 file changed
+2
+2
View File
@@ -69,6 +69,7 @@ lv_obj_t* lv_speedmeter_create(lv_obj_t* parent, int max_speed, const char* unit
self->max_speed = max_speed;
lv_obj_t* arc = lv_arc_create(obj);
lv_obj_remove_flag(arc, LV_OBJ_FLAG_CLICKABLE);
lv_coord_t size = LV_MIN(
lv_obj_get_width(obj),
lv_obj_get_height(obj)
@@ -100,6 +101,7 @@ lv_obj_t* lv_speedmeter_create(lv_obj_t* parent, int max_speed, const char* unit
lv_obj_t* speed_unit_label = lv_label_create(obj);
lv_obj_align(speed_unit_label, LV_ALIGN_CENTER, 0, 30);
lv_obj_set_style_text_font(speed_unit_label, &lv_font_din_26, 0);
if (unit == NULL || strnlen(unit, 10) == 0) {