# lv_theme_default.h (/api/themes/default/lv_theme_default_h)



<ApiSummary functions="4" />

Functions [#functions]

<ApiTabs items="[&#x22;Getters (1)&#x22;,&#x22;Other (3)&#x22;]">
  <ApiTab value="Getters (1)">
    <ApiMember kind="function" name="lv_theme_default_get" file="themes/default/lv_theme_default.h" line="54" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/themes/default/lv_theme_default.h#L54">
      lv_theme_default_get [#lv_theme_default_get]

      Get default theme

      ```c title=" " lineNumbers=1
      lv_theme_t * lv_theme_default_get(void)
      ```

      **Returns:** <ApiLink name="lv_theme_t" display="lv_theme_t *" /> — a pointer to default theme, or NULL if this is not initialized
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (3)">
    <ApiMember kind="function" name="lv_theme_default_init" file="themes/default/lv_theme_default.h" line="41" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/themes/default/lv_theme_default.h#L41">
      lv_theme_default_init [#lv_theme_default_init]

      Initialize the theme

      ```c title=" " lineNumbers=1
      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)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name              | Type                                                     | Description                       |
      | ----------------- | -------------------------------------------------------- | --------------------------------- |
      | `disp`            | <ApiLink name="lv_display_t" display="lv_display_t *" /> | pointer to display                |
      | `color_primary`   | <ApiLink name="lv_color_t" />                            | the primary color of the theme    |
      | `color_secondary` | <ApiLink name="lv_color_t" />                            | the secondary color for the theme |
      | `dark`            | <ApiLink name="bool" />                                  |                                   |
      | `font`            | <ApiLink name="lv_font_t" display="const lv_font_t *" /> | pointer to a font to use.         |

      **Returns:** <ApiLink name="lv_theme_t" display="lv_theme_t *" /> — a pointer to reference this theme later
    </ApiMember>

    <ApiMember kind="function" name="lv_theme_default_is_inited" file="themes/default/lv_theme_default.h" line="48" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/themes/default/lv_theme_default.h#L48">
      lv_theme_default_is_inited [#lv_theme_default_is_inited]

      Check if default theme is initialized

      ```c title=" " lineNumbers=1
      bool lv_theme_default_is_inited(void)
      ```

      **Returns:** <ApiLink name="bool" /> — true if default theme is initialized, false otherwise
    </ApiMember>

    <ApiMember kind="function" name="lv_theme_default_deinit" file="themes/default/lv_theme_default.h" line="59" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/themes/default/lv_theme_default.h#L59">
      lv_theme_default_deinit [#lv_theme_default_deinit]

      Deinitialize the default theme

      ```c title=" " lineNumbers=1
      void lv_theme_default_deinit(void)
      ```
    </ApiMember>
  </ApiTab>
</ApiTabs>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_theme.h&#x22;]" includedBy="[&#x22;lv_theme.h&#x22;]" transitiveIncludes="[&#x22;lv_anim.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_display.h&#x22;, &#x22;lv_draw.h&#x22;, &#x22;lv_draw_arc.h&#x22;, &#x22;lv_draw_blur.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_draw_image.h&#x22;, &#x22;lv_draw_label.h&#x22;, &#x22;lv_draw_line.h&#x22;, &#x22;lv_draw_rect.h&#x22;, &#x22;lv_draw_triangle.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_fs.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_image_decoder.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_indev.h&#x22;, &#x22;lv_layout.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_matrix.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_obj.h&#x22;, &#x22;lv_obj_class.h&#x22;, &#x22;lv_obj_draw.h&#x22;, &#x22;lv_obj_event.h&#x22;, &#x22;lv_obj_pos.h&#x22;, &#x22;lv_obj_property.h&#x22;, &#x22;lv_obj_property_names.h&#x22;, &#x22;lv_obj_scroll.h&#x22;, &#x22;lv_obj_style.h&#x22;, &#x22;lv_obj_style_gen.h&#x22;, &#x22;lv_obj_tree.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_profiler.h&#x22;, &#x22;lv_profiler_builtin.h&#x22;, &#x22;lv_sprintf.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_style.h&#x22;, &#x22;lv_style_gen.h&#x22;, &#x22;lv_style_properties.h&#x22;, &#x22;lv_symbol_def.h&#x22;, &#x22;lv_text.h&#x22;, &#x22;lv_theme_mono.h&#x22;, &#x22;lv_theme_simple.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
