Lines Matching refs:theme

20 #define RADIUS_DEFAULT (disp_size == DISP_LARGE ? lv_disp_dpx(theme.disp, 12) : lv_disp_dpx(theme.d…
33 #define BORDER_WIDTH lv_disp_dpx(theme.disp, 2)
34 #define OUTLINE_WIDTH lv_disp_dpx(theme.disp, 3)
36 …e == DISP_LARGE ? lv_disp_dpx(theme.disp, 24) : disp_size == DISP_MEDIUM ? lv_disp_dpx(theme.disp,…
37 …e == DISP_LARGE ? lv_disp_dpx(theme.disp, 14) : disp_size == DISP_MEDIUM ? lv_disp_dpx(theme.disp,…
38 …ze == DISP_LARGE ? lv_disp_dpx(theme.disp, 8) : disp_size == DISP_MEDIUM ? lv_disp_dpx(theme.disp,…
174 static lv_theme_t theme; variable
199 …if(theme.flags & MODE_DARK) return lv_color_mix(lv_palette_darken(LV_PALETTE_GREY, 2), color, opa); in grey_filter_cb()
214 color_scr = theme.flags & MODE_DARK ? DARK_COLOR_SCR : LIGHT_COLOR_SCR; in style_init()
215 color_text = theme.flags & MODE_DARK ? DARK_COLOR_TEXT : LIGHT_COLOR_TEXT; in style_init()
216 color_card = theme.flags & MODE_DARK ? DARK_COLOR_CARD : LIGHT_COLOR_CARD; in style_init()
217 color_grey = theme.flags & MODE_DARK ? DARK_COLOR_GREY : LIGHT_COLOR_GREY; in style_init()
234 lv_color_t sb_color = (theme.flags & MODE_DARK) ? lv_palette_darken(LV_PALETTE_GREY, in style_init()
239 lv_style_set_pad_all(&styles->scrollbar, lv_disp_dpx(theme.disp, 7)); in style_init()
240 lv_style_set_width(&styles->scrollbar, lv_disp_dpx(theme.disp, 5)); in style_init()
268 lv_style_set_line_width(&styles->card, lv_disp_dpx(theme.disp, 1)); in style_init()
271 lv_style_set_outline_color(&styles->outline_primary, theme.color_primary); in style_init()
277 lv_style_set_outline_color(&styles->outline_secondary, theme.color_secondary); in style_init()
282 lv_style_set_radius(&styles->btn, (disp_size == DISP_LARGE ? lv_disp_dpx(theme.disp, in style_init()
283 … 16) : disp_size == DISP_MEDIUM ? lv_disp_dpx(theme.disp, 12) : lv_disp_dpx(theme.disp, 8))); in style_init()
286 if(!(theme.flags & MODE_DARK)) { in style_init()
290 lv_style_set_shadow_ofs_y(&styles->btn, lv_disp_dpx(theme.disp, LV_DPX(4))); in style_init()
295 lv_style_set_pad_column(&styles->btn, lv_disp_dpx(theme.disp, 5)); in style_init()
296 lv_style_set_pad_row(&styles->btn, lv_disp_dpx(theme.disp, 5)); in style_init()
326 lv_style_set_pad_row(&styles->pad_gap, lv_disp_dpx(theme.disp, 10)); in style_init()
327 lv_style_set_pad_column(&styles->pad_gap, lv_disp_dpx(theme.disp, 10)); in style_init()
330 lv_style_set_text_line_space(&styles->line_space_large, lv_disp_dpx(theme.disp, 20)); in style_init()
346 lv_style_set_bg_color(&styles->bg_color_primary, theme.color_primary); in style_init()
351 lv_style_set_bg_color(&styles->bg_color_primary_muted, theme.color_primary); in style_init()
352 lv_style_set_text_color(&styles->bg_color_primary_muted, theme.color_primary); in style_init()
356 lv_style_set_bg_color(&styles->bg_color_secondary, theme.color_secondary); in style_init()
361 lv_style_set_bg_color(&styles->bg_color_secondary_muted, theme.color_secondary); in style_init()
362 lv_style_set_text_color(&styles->bg_color_secondary_muted, theme.color_secondary); in style_init()
383 lv_style_set_transform_width(&styles->grow, lv_disp_dpx(theme.disp, 3)); in style_init()
384 lv_style_set_transform_height(&styles->grow, lv_disp_dpx(theme.disp, 3)); in style_init()
388 lv_style_set_bg_color(&styles->knob, theme.color_primary); in style_init()
390 lv_style_set_pad_all(&styles->knob, lv_disp_dpx(theme.disp, 6)); in style_init()
402 lv_style_set_arc_width(&styles->arc_indic, lv_disp_dpx(theme.disp, 15)); in style_init()
406 lv_style_set_arc_color(&styles->arc_indic_primary, theme.color_primary); in style_init()
415 lv_style_set_pad_all(&styles->cb_marker, lv_disp_dpx(theme.disp, 3)); in style_init()
417 lv_style_set_border_color(&styles->cb_marker, theme.color_primary); in style_init()
425 lv_style_set_text_font(&styles->cb_marker_checked, theme.font_small); in style_init()
430 lv_style_set_pad_all(&styles->switch_knob, - lv_disp_dpx(theme.disp, 4)); in style_init()
443 lv_style_set_pad_column(&styles->chart_bg, lv_disp_dpx(theme.disp, 10)); in style_init()
447 lv_style_set_line_width(&styles->chart_series, lv_disp_dpx(theme.disp, 3)); in style_init()
448 lv_style_set_radius(&styles->chart_series, lv_disp_dpx(theme.disp, 3)); in style_init()
449 lv_style_set_size(&styles->chart_series, lv_disp_dpx(theme.disp, 8)); in style_init()
450 lv_style_set_pad_column(&styles->chart_series, lv_disp_dpx(theme.disp, 2)); in style_init()
454 lv_style_set_size(&styles->chart_indic, lv_disp_dpx(theme.disp, 8)); in style_init()
455 lv_style_set_bg_color(&styles->chart_indic, theme.color_primary); in style_init()
459 lv_style_set_line_width(&styles->chart_ticks, lv_disp_dpx(theme.disp, 1)); in style_init()
461 lv_style_set_pad_all(&styles->chart_ticks, lv_disp_dpx(theme.disp, 2)); in style_init()
484 lv_style_set_border_width(&styles->menu_cont, lv_disp_dpx(theme.disp, 1)); in style_init()
492 lv_style_set_border_width(&styles->menu_sidebar_cont, lv_disp_dpx(theme.disp, 1)); in style_init()
528 lv_style_set_line_width(&styles->meter_marker, lv_disp_dpx(theme.disp, 5)); in style_init()
530 lv_style_set_size(&styles->meter_marker, lv_disp_dpx(theme.disp, 20)); in style_init()
531 lv_style_set_pad_left(&styles->meter_marker, lv_disp_dpx(theme.disp, 15)); in style_init()
537 lv_style_set_size(&styles->meter_indic, lv_disp_dpx(theme.disp, 15)); in style_init()
542 lv_style_set_border_width(&styles->table_cell, lv_disp_dpx(theme.disp, 1)); in style_init()
550 lv_style_set_border_width(&styles->ta_cursor, lv_disp_dpx(theme.disp, 2)); in style_init()
551 lv_style_set_pad_left(&styles->ta_cursor, - lv_disp_dpx(theme.disp, 1)); in style_init()
556 …lv_style_set_text_color(&styles->ta_placeholder, (theme.flags & MODE_DARK) ? lv_palette_darken(LV_… in style_init()
566 lv_style_set_border_width(&styles->calendar_btnm_day, lv_disp_dpx(theme.disp, 1)); in style_init()
580 lv_style_set_arc_width(&styles->colorwheel_main, lv_disp_dpx(theme.disp, 10)); in style_init()
586 lv_style_set_pad_all(&styles->msgbox_btn_bg, lv_disp_dpx(theme.disp, 4)); in style_init()
603 lv_style_set_border_color(&styles->tab_btn, theme.color_primary); in style_init()
619 lv_style_set_border_width(&styles->list_btn, lv_disp_dpx(theme.disp, 1)); in style_init()
635 lv_style_set_shadow_width(&styles->led, lv_disp_dpx(theme.disp, 15)); in style_init()
637 lv_style_set_shadow_spread(&styles->led, lv_disp_dpx(theme.disp, 5)); in style_init()
662 theme.disp = disp; in lv_theme_default_init()
663 theme.color_primary = color_primary; in lv_theme_default_init()
664 theme.color_secondary = color_secondary; in lv_theme_default_init()
665 theme.font_small = font; in lv_theme_default_init()
666 theme.font_normal = font; in lv_theme_default_init()
667 theme.font_large = font; in lv_theme_default_init()
668 theme.apply_cb = theme_apply; in lv_theme_default_init()
669 theme.flags = dark ? MODE_DARK : 0; in lv_theme_default_init()
673 if(disp == NULL || lv_disp_get_theme(disp) == &theme) lv_obj_report_style_change(NULL); in lv_theme_default_init()
677 return (lv_theme_t *)&theme; in lv_theme_default_init()
686 return (lv_theme_t *)&theme; in lv_theme_default_get()