1 #include "../lv_examples.h" 2 #if LV_BUILD_EXAMPLES && LV_USE_ARC 3 4 /** 5 * Using the Arc style properties 6 */ lv_example_style_7(void)7void lv_example_style_7(void) 8 { 9 static lv_style_t style; 10 lv_style_init(&style); 11 12 lv_style_set_arc_color(&style, lv_palette_main(LV_PALETTE_RED)); 13 lv_style_set_arc_width(&style, 4); 14 15 /*Create an object with the new style*/ 16 lv_obj_t * obj = lv_arc_create(lv_scr_act()); 17 lv_obj_add_style(obj, &style, 0); 18 lv_obj_center(obj); 19 } 20 #endif 21 22