DC2047

Results 4 comments of DC2047

lv_obj_t *arc = lv_arc_create(cont); // lv_obj_set_style_bg_opa(arc, LV_OPA_TRANSP, LV_PART_MAIN); lv_obj_set_style_pad_all(arc, 4, LV_PART_MAIN); lv_obj_set_style_arc_image_src(arc, &img_circle_dark, LV_PART_MAIN); lv_obj_set_style_arc_width(arc, 16, LV_PART_MAIN); lv_obj_set_style_arc_image_src(arc, &img_circle, LV_PART_INDICATOR); lv_obj_set_style_arc_width(arc, 16, LV_PART_INDICATOR); lv_obj_set_style_arc_color(arc, theme->home.out.text2, LV_PART_INDICATOR); // lv_obj_set_style_arc_opa(arc, LV_OPA_COVER, LV_PART_INDICATOR);...

`img_circle_dark` ![img_circle_dark](https://github.com/lvgl/lvgl/assets/158791102/5b62de59-af49-48ec-9135-e6af271caa8a) const lv_image_dsc_t img_circle_dark = { .header.cf = LV_COLOR_FORMAT_RGB565A8, .header.magic = LV_IMAGE_HEADER_MAGIC, .header.w = 63, .header.h = 63, .data_size = 3969 * 3, .data = img_circle_dark_map, }; Thank you!

My display content: ![1707304495592](https://github.com/lvgl/lvgl/assets/158791102/d9089468-b305-4cec-94b2-458877ce1f24) ``` lv_obj_t* arc = lv_arc_create(lv_screen_active()); //lv_obj_remove_style_all(arc); lv_obj_set_style_pad_all(arc, 2, LV_PART_MAIN); lv_obj_set_style_radius(arc, LV_RADIUS_CIRCLE, LV_PART_MAIN); lv_obj_set_style_border_color(arc, lv_color_hex(0x222222), LV_PART_MAIN); // 0x222222 0x008A00 lv_obj_set_style_border_opa(arc, LV_OPA_COVER, LV_PART_MAIN); lv_obj_set_style_border_width(arc, 1, LV_PART_MAIN); lv_obj_set_style_arc_image_src(arc, &img_circle_dark,...

Very efficient! 👍