lv_theme_default.h

Functions

lv_theme_t *lv_theme_default_init(lv_display_t *disp, lv_color_t color_primary, lv_color_t color_secondary, bool dark, const lv_font_t *font)

Initialize the theme

Parameters:
  • disp – pointer to display

  • color_primary – the primary color of the theme

  • color_secondary – the secondary color for the theme

  • dark

  • font – pointer to a font to use.

Returns:

a pointer to reference this theme later

lv_theme_t *lv_theme_default_get(void)

Get default theme

Returns:

a pointer to default theme, or NULL if this is not initialized

bool lv_theme_default_is_inited(void)

Check if default theme is initialized

Returns:

true if default theme is initialized, false otherwise

void lv_theme_default_deinit(void)

Deinitialize the default theme