/lvgl-latest/src/draw/sdl/ |
D | lv_draw_sdl_bg.c | 80 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()
|
D | lv_draw_sdl_rect.c | 371 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/ |
D | lv_example_qrcode_1.c | 9 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()
|
D | lv_example_qrcode_1.py | 5 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/ |
D | lv_example_table_1.c | 16 …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()
|
D | lv_example_table_1.py | 12 …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._…
|
D | lv_example_table_2.py | 17 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()
|
D | lv_example_table_2.c | 16 …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/ |
D | lv_example_btnmatrix_2.c | 16 …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()
|
D | lv_example_btnmatrix_2.py | 30 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/ |
D | lv_led.c | 181 …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/ |
D | test_table.c | 136 …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/ |
D | lv_hal_disp.c | 207 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/ |
D | lv_draw_sw_blend.c | 380 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/ |
D | lv_color.h | 530 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/ |
D | lv_draw_rect.c | 40 dsc->bg_color = lv_color_white(); in lv_draw_rect_dsc_init()
|
D | lv_draw_rect.h | 38 lv_color_t bg_color; /**< First element of a gradient is a color, so it maps well here*/ member
|
D | lv_img_decoder.c | 572 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/ |
D | lv_example_event_4.c | 34 draw_dsc.bg_color = lv_palette_main(LV_PALETTE_LIGHT_GREEN); in event_cb()
|
/lvgl-latest/examples/widgets/chart/ |
D | lv_example_chart_7.c | 23 dsc->rect_dsc->bg_color = lv_color_mix(lv_palette_main(LV_PALETTE_RED), in draw_event_cb()
|
D | lv_example_chart_4.c | 35 draw_rect_dsc.bg_color = lv_color_black(); in event_cb()
|
D | lv_example_chart_6.c | 41 draw_rect_dsc.bg_color = lv_palette_main(LV_PALETTE_BLUE); in event_cb()
|
D | lv_example_chart_7.py | 27 dsc.rect_dsc.bg_color = lv.palette_main(lv.PALETTE.RED).color_mix(
|
D | lv_example_chart_4.py | 24 draw_rect_dsc.bg_color = lv.color_black()
|
/lvgl-latest/examples/widgets/menu/ |
D | lv_example_menu_5.c | 24 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()
|