lvgl/src/lv_themes/lv_theme_mono.c
/**
 * Initialize the mono theme
 * @param hue [0..360] hue value from HSV color space to define the theme's base color; is not used
 * in lv_theme_mono
 * @param font pointer to a font (NULL to use the default)
 * @return pointer to the initialized theme
 */
Initialize the mono theme
@param hue [0..360] hue value from HSV color space to define the theme's base color; is not used
in lv_theme_mono
@param font pointer to a font (NULL to use the default)
@return pointer to the initialized theme
Initialize the mono theme @param hue [ 0 .. 360 ] hue value from HSV color space to define the theme ' s base color ; is not used in lv_theme_mono @param font pointer to a font ( NULL to use the default ) @return pointer to the initialized theme
lv_theme_t * lv_theme_mono_init(uint16_t hue, lv_font_t * font)
{
    (void)hue; 
    if(font == NULL) font = LV_FONT_DEFAULT;
    _font = font;
    uint16_t i;
    lv_style_t ** style_p = (lv_style_t **)&theme.style;
    for(i = 0; i < LV_THEME_STYLE_COUNT; i++) {
        *style_p = &def;
        style_p++;
    }
    basic_init();
    cont_init();
    btn_init();
    label_init();
    img_init();
    line_init();
    bar_init();
    slider_init();
    sw_init();
    lmeter_init();
    gauge_init();
    calendar_init();
    cb_init();
    btnm_init();
    kb_init();
    page_init();
    ta_init();
    spinbox_init();
    ddlist_init();
    roller_init();
    theme.group.style_mod_xcb      = style_mod;
    theme.group.style_mod_edit_xcb = style_mod_edit;
    return &theme;
}
lv_theme_t * lv_theme_mono_init ( uint16_t hue , lv_font_t * font ) { ( void ) hue ; if ( font == NULL ) font = LV_FONT_DEFAULT ; _font = font ; uint16_t i ; lv_style_t * * style_p = ( lv_style_t * * ) & theme . style ; for ( i = 0 ; i < LV_THEME_STYLE_COUNT ; i ++ ) { * style_p = & def ; style_p ++ ; } basic_init ( ) ; cont_init ( ) ; btn_init ( ) ; label_init ( ) ; img_init ( ) ; line_init ( ) ; bar_init ( ) ; slider_init ( ) ; sw_init ( ) ; lmeter_init ( ) ; gauge_init ( ) ; calendar_init ( ) ; cb_init ( ) ; btnm_init ( ) ; kb_init ( ) ; page_init ( ) ; ta_init ( ) ; spinbox_init ( ) ; ddlist_init ( ) ; roller_init ( ) ; theme . group . style_mod_xcb = style_mod ; theme . group . style_mod_edit_xcb = style_mod_edit ; return & theme ; }
Initialize the mono theme
 @param hue [0..360] hue value from HSV color space to define the theme's base color; is not used
 in lv_theme_mono
 @param font pointer to a font (NULL to use the default)
 @return pointer to the initialized theme
Initialize the mono theme @param hue [ 0 .. 360 ] hue value from HSV color space to define the theme ' s base color ; is not used in lv_theme_mono @param font pointer to a font ( NULL to use the default ) @return pointer to the initialized theme
/*Unused*/ /*For backward compatibility initialize all theme elements with a default style */