Lines Matching refs:style
20 static lv_obj_t * label_create(const lv_font_t * font, lv_style_t * style, const char * text_base) in label_create() argument
26 if(style) lv_obj_add_style(label, style, 0); in label_create()
31 static void all_labels_create(const char * name, lv_style_t * style) in all_labels_create() argument
38 label_create(&test_font_montserrat_ascii_1bpp, style, "1bpp font"); in all_labels_create()
39 label_create(&test_font_montserrat_ascii_2bpp, style, "2bpp font"); in all_labels_create()
40 label_create(&test_font_montserrat_ascii_4bpp, style, "4bpp font"); in all_labels_create()
41 label_create(&test_font_montserrat_ascii_3bpp_compressed, style, "3bpp compressed font"); in all_labels_create()
55 static lv_style_t style; in test_draw_label_color() local
56 lv_style_init(&style); in test_draw_label_color()
57 lv_style_set_text_color(&style, lv_palette_main(LV_PALETTE_RED)); in test_draw_label_color()
58 all_labels_create("color", &style); in test_draw_label_color()
64 static lv_style_t style; in test_draw_label_opa() local
65 lv_style_init(&style); in test_draw_label_opa()
66 lv_style_set_text_color(&style, lv_palette_main(LV_PALETTE_RED)); in test_draw_label_opa()
67 all_labels_create("opa", &style); in test_draw_label_opa()
72 static lv_style_t style; in test_draw_label_color_and_opa() local
73 lv_style_init(&style); in test_draw_label_color_and_opa()
74 lv_style_set_text_color(&style, lv_palette_main(LV_PALETTE_RED)); in test_draw_label_color_and_opa()
75 lv_style_set_text_opa(&style, LV_OPA_50); in test_draw_label_color_and_opa()
76 all_labels_create("color_and_opa", &style); in test_draw_label_color_and_opa()