Home
last modified time | relevance | path

Searched refs:bg_color (Results 1 – 25 of 56) sorted by relevance

123

/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_bg.c80 SDL_Color bg_color; in draw_bg_color() local
81 lv_color_to_sdl_color(&dsc->bg_color, &bg_color); in draw_bg_color()
83 SDL_SetRenderDrawColor(ctx->renderer, bg_color.r, bg_color.g, bg_color.b, dsc->bg_opa); in draw_bg_color()
Dlv_draw_sdl_rect.c371 SDL_Color bg_color; in draw_bg_color() local
373 lv_color_to_sdl_color(&dsc->bg_color, &bg_color); in draw_bg_color()
376 lv_color_to_sdl_color(&dsc->bg_grad.stops[0].color, &bg_color); in draw_bg_color()
390 SDL_SetRenderDrawColor(ctx->renderer, bg_color.r, bg_color.g, bg_color.b, dsc->bg_opa); in draw_bg_color()
404 SDL_SetTextureColorMod(texture, bg_color.r, bg_color.g, bg_color.b); in draw_bg_color()
/lvgl-latest/examples/libs/qrcode/
Dlv_example_qrcode_1.c9 lv_color_t bg_color = lv_palette_lighten(LV_PALETTE_LIGHT_BLUE, 5); in lv_example_qrcode_1() local
12 lv_obj_t * qr = lv_qrcode_create(lv_scr_act(), 150, fg_color, bg_color); in lv_example_qrcode_1()
20 lv_obj_set_style_border_color(qr, bg_color, 0); in lv_example_qrcode_1()
Dlv_example_qrcode_1.py5 bg_color = lv.palette_lighten(lv.PALETTE.LIGHT_BLUE, 5) variable
8 qr = lv.qrcode(lv.scr_act(), 150, fg_color, bg_color)
14 qr.set_style_border_color(bg_color, 0)
/lvgl-latest/examples/widgets/table/
Dlv_example_table_1.c16 …dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_BLUE), dsc->rect_dsc->bg_color, … in draw_part_event_cb()
26 …dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_GREY), dsc->rect_dsc->bg_color, … in draw_part_event_cb()
Dlv_example_table_1.py12 …dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.BLUE).color_mix(dsc.rect_dsc.bg_color, lv.OPA._…
21 …dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.GREY).color_mix(dsc.rect_dsc.bg_color, lv.OPA._…
Dlv_example_table_2.py17 rect_dsc.bg_color = lv.theme_get_color_primary(obj)
19 rect_dsc.bg_color = lv.palette_lighten(lv.PALETTE.GREY, 2)
30 rect_dsc.bg_color = lv.color_white()
Dlv_example_table_2.c16 …rect_dsc.bg_color = chk ? lv_theme_get_color_primary(obj) : lv_palette_lighten(LV_PALETTE_GREY, 2); in draw_event_cb()
26 rect_dsc.bg_color = lv_color_white(); in draw_event_cb()
/lvgl-latest/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_2.c16 …if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) dsc->rect_dsc->bg_color = lv_palette_darken(LV_… in event_cb()
17 else dsc->rect_dsc->bg_color = lv_palette_main(LV_PALETTE_BLUE); in event_cb()
27 …if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) dsc->rect_dsc->bg_color = lv_palette_darken(LV_… in event_cb()
28 else dsc->rect_dsc->bg_color = lv_palette_main(LV_PALETTE_RED); in event_cb()
Dlv_example_btnmatrix_2.py30 dsc.rect_dsc.bg_color = lv.palette_darken(lv.PALETTE.GREY, 3)
32 dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.BLUE)
44 dsc.rect_dsc.bg_color = lv.palette_darken(lv.PALETTE.RED, 3)
46 dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.RED)
/lvgl-latest/src/extra/widgets/led/
Dlv_led.c181 …rect_dsc.bg_color = lv_color_mix(led->color, lv_color_black(), lv_color_brightness(rect_dsc.bg_col… in lv_led_event()
191 rect_dsc.bg_color = lv_color_mix(rect_dsc.bg_color, lv_color_black(), led->bright); in lv_led_event()
/lvgl-latest/tests/src/test_cases/
Dtest_table.c136 …dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_BLUE), dsc->rect_dsc->bg_color, … in draw_part_event_cb()
146 …dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_RED), dsc->rect_dsc->bg_color, L… in draw_part_event_cb()
/lvgl-latest/src/hal/
Dlv_hal_disp.c207 disp->bg_color = lv_color_white(); in lv_disp_drv_register()
697 lv_color_t bg_color; in set_px_true_color_alpha() local
701 bg_color.full = buf_px[0]; in set_px_true_color_alpha()
702 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf_px[2]); in set_px_true_color_alpha()
706 bg_color.full = buf_px[0] + (buf_px[1] << 8); in set_px_true_color_alpha()
707 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf_px[2]); in set_px_true_color_alpha()
712 bg_color = *((lv_color_t *)buf_px); in set_px_true_color_alpha()
713 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf_px[3]); in set_px_true_color_alpha()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_blend.c380 lv_color_t bg_color; in set_px_argb() local
384 bg_color.full = buf[0]; in set_px_argb()
385 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf[1]); in set_px_argb()
389 bg_color.full = buf[0] + (buf[1] << 8); in set_px_argb()
390 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf[2]); in set_px_argb()
395 bg_color = *((lv_color_t *)buf); in set_px_argb()
396 lv_color_mix_with_alpha(bg_color, bg_opa, color, opa, &res_color, &buf[3]); in set_px_argb()
412 lv_color_t bg_color; in set_px_argb_blend() local
417 bg_color.full = buf[0]; in set_px_argb_blend()
420 bg_color.full = buf[0] + (buf[1] << 8); in set_px_argb_blend()
[all …]
/lvgl-latest/src/misc/
Dlv_color.h530 static inline void LV_ATTRIBUTE_FAST_MEM lv_color_mix_with_alpha(lv_color_t bg_color, lv_opa_t bg_o… in lv_color_mix_with_alpha() argument
541 res_color->full = bg_color.full; in lv_color_mix_with_alpha()
546 *res_color = lv_color_mix(fg_color, bg_color, fg_opa); in lv_color_mix_with_alpha()
560 bg_color.full != bg_color_save.full) { in lv_color_mix_with_alpha()
564 bg_color_save.full = bg_color.full; in lv_color_mix_with_alpha()
570 res_color_saved = lv_color_mix(fg_color, bg_color, ratio); in lv_color_mix_with_alpha()
/lvgl-latest/src/draw/
Dlv_draw_rect.c40 dsc->bg_color = lv_color_white(); in lv_draw_rect_dsc_init()
Dlv_draw_rect.h38 lv_color_t bg_color; /**< First element of a gradient is a color, so it maps well here*/ member
Dlv_img_decoder.c572 lv_color_t bg_color = dsc->color; in lv_img_decoder_built_in_line_alpha() local
576 buf[i * LV_IMG_PX_SIZE_ALPHA_BYTE] = bg_color.full; in lv_img_decoder_built_in_line_alpha()
579 buf[i * LV_IMG_PX_SIZE_ALPHA_BYTE] = bg_color.full & 0xFF; in lv_img_decoder_built_in_line_alpha()
580 buf[i * LV_IMG_PX_SIZE_ALPHA_BYTE + 1] = (bg_color.full >> 8) & 0xFF; in lv_img_decoder_built_in_line_alpha()
582 *((uint32_t *)&buf[i * LV_IMG_PX_SIZE_ALPHA_BYTE]) = bg_color.full; in lv_img_decoder_built_in_line_alpha()
/lvgl-latest/examples/event/
Dlv_example_event_4.c34 draw_dsc.bg_color = lv_palette_main(LV_PALETTE_LIGHT_GREEN); in event_cb()
/lvgl-latest/examples/widgets/chart/
Dlv_example_chart_7.c23 dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_RED), in draw_event_cb()
Dlv_example_chart_4.c35 draw_rect_dsc.bg_color = lv_color_black(); in event_cb()
Dlv_example_chart_6.c41 draw_rect_dsc.bg_color = lv_palette_main(LV_PALETTE_BLUE); in event_cb()
Dlv_example_chart_7.py27 dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.RED).color_mix(
Dlv_example_chart_4.py24 draw_rect_dsc.bg_color = lv.color_black()
/lvgl-latest/examples/widgets/menu/
Dlv_example_menu_5.c24 lv_color_t bg_color = lv_obj_get_style_bg_color(menu, 0); in lv_example_menu_5() local
25 if(lv_color_brightness(bg_color) > 127) { in lv_example_menu_5()

123