acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

lv_example_style_7.c (471B)

      1 #include "../lv_examples.h"
      2 #if LV_BUILD_EXAMPLES && LV_USE_ARC
      3 
      4 /**
      5  * Using the Arc style properties
      6  */
      7 void 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