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

参数:
  • 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.

返回:

a pointer to reference this theme later

lv_theme_t *lv_theme_default_get(void)

Get default theme

返回:

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

返回:

true if default theme is initialized, false otherwise

void lv_theme_default_deinit(void)

Deinitialize the default theme