Lines Matching refs:base
163 lv_theme_t base; member
209 …if(theme_def->base.flags & MODE_DARK) return lv_color_mix(lv_palette_darken(LV_PALETTE_GREY, 2), c… in grey_filter_cb()
227 theme->color_scr = theme->base.flags & MODE_DARK ? DARK_COLOR_SCR : LIGHT_COLOR_SCR; in style_init()
228 theme->color_text = theme->base.flags & MODE_DARK ? DARK_COLOR_TEXT : LIGHT_COLOR_TEXT; in style_init()
229 theme->color_card = theme->base.flags & MODE_DARK ? DARK_COLOR_CARD : LIGHT_COLOR_CARD; in style_init()
230 theme->color_grey = theme->base.flags & MODE_DARK ? DARK_COLOR_GREY : LIGHT_COLOR_GREY; in style_init()
245 lv_color_t sb_color = (theme->base.flags & MODE_DARK) ? lv_palette_darken(LV_PALETTE_GREY, in style_init()
264 lv_style_set_text_font(&theme->styles.scr, theme->base.font_normal); in style_init()
284 lv_style_set_outline_color(&theme->styles.outline_primary, theme->base.color_primary); in style_init()
290 lv_style_set_outline_color(&theme->styles.outline_secondary, theme->base.color_secondary); in style_init()
299 if(!(theme->base.flags & MODE_DARK)) { in style_init()
356 lv_style_set_bg_color(&theme->styles.bg_color_primary, theme->base.color_primary); in style_init()
361 lv_style_set_bg_color(&theme->styles.bg_color_primary_muted, theme->base.color_primary); in style_init()
362 lv_style_set_text_color(&theme->styles.bg_color_primary_muted, theme->base.color_primary); in style_init()
366 lv_style_set_bg_color(&theme->styles.bg_color_secondary, theme->base.color_secondary); in style_init()
371 lv_style_set_bg_color(&theme->styles.bg_color_secondary_muted, theme->base.color_secondary); in style_init()
372 lv_style_set_text_color(&theme->styles.bg_color_secondary_muted, theme->base.color_secondary); in style_init()
401 lv_style_set_bg_color(&theme->styles.knob, theme->base.color_primary); in style_init()
419 lv_style_set_arc_color(&theme->styles.arc_indic_primary, theme->base.color_primary); in style_init()
430 lv_style_set_border_color(&theme->styles.cb_marker, theme->base.color_primary); in style_init()
434 lv_style_set_text_font(&theme->styles.cb_marker, theme->base.font_small); in style_init()
470 lv_style_set_bg_color(&theme->styles.chart_indic, theme->base.color_primary); in style_init()
552 (theme->base.flags & MODE_DARK) ? lv_palette_darken(LV_PALETTE_GREY, in style_init()
588 lv_style_set_border_color(&theme->styles.tab_btn, theme->base.color_primary); in style_init()
665 lv_color_eq(theme->base.color_primary, color_primary) && in lv_theme_default_init()
666 lv_color_eq(theme->base.color_secondary, color_secondary) && in lv_theme_default_init()
667 (theme->base.flags == dark ? MODE_DARK : 0) && in lv_theme_default_init()
668 theme->base.font_small == font) { in lv_theme_default_init()
675 theme->base.disp = new_disp; in lv_theme_default_init()
676 theme->base.color_primary = color_primary; in lv_theme_default_init()
677 theme->base.color_secondary = color_secondary; in lv_theme_default_init()
678 theme->base.font_small = font; in lv_theme_default_init()
679 theme->base.font_normal = font; in lv_theme_default_init()
680 theme->base.font_large = font; in lv_theme_default_init()
681 theme->base.apply_cb = theme_apply; in lv_theme_default_init()
682 theme->base.flags = dark ? MODE_DARK : 0; in lv_theme_default_init()