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_obj_1.c (649B)
1 #include "../../lv_examples.h" 2 #if LV_BUILD_EXAMPLES 3 4 void lv_example_obj_1(void) 5 { 6 lv_obj_t * obj1; 7 obj1 = lv_obj_create(lv_scr_act()); 8 lv_obj_set_size(obj1, 100, 50); 9 lv_obj_align(obj1, LV_ALIGN_CENTER, -60, -30); 10 11 static lv_style_t style_shadow; 12 lv_style_init(&style_shadow); 13 lv_style_set_shadow_width(&style_shadow, 10); 14 lv_style_set_shadow_spread(&style_shadow, 5); 15 lv_style_set_shadow_color(&style_shadow, lv_palette_main(LV_PALETTE_BLUE)); 16 17 lv_obj_t * obj2; 18 obj2 = lv_obj_create(lv_scr_act()); 19 lv_obj_add_style(obj2, &style_shadow, 0); 20 lv_obj_align(obj2, LV_ALIGN_CENTER, 60, 30); 21 } 22 #endif