acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

lv_theme_default.h (1326B)

      1 /**
      2  * @file lv_theme_default.h
      3  *
      4  */
      5 
      6 #ifndef LV_THEME_DEFAULT_H
      7 #define LV_THEME_DEFAULT_H
      8 
      9 #ifdef __cplusplus
     10 extern "C" {
     11 #endif
     12 
     13 /*********************
     14  *      INCLUDES
     15  *********************/
     16 #include "../../../core/lv_obj.h"
     17 
     18 #if LV_USE_THEME_DEFAULT
     19 
     20 /*********************
     21  *      DEFINES
     22  *********************/
     23 
     24 /**********************
     25  *      TYPEDEFS
     26  **********************/
     27 
     28 /**********************
     29  * GLOBAL PROTOTYPES
     30  **********************/
     31 
     32 /**
     33  * Initialize the theme
     34  * @param color_primary the primary color of the theme
     35  * @param color_secondary the secondary color for the theme
     36  * @param font pointer to a font to use.
     37  * @return a pointer to reference this theme later
     38  */
     39 lv_theme_t * lv_theme_default_init(lv_disp_t * disp, lv_color_t color_primary, lv_color_t color_secondary, bool dark,
     40                                    const lv_font_t * font);
     41 
     42 /**
     43  * Get default theme
     44  * @return a pointer to default theme, or NULL if this is not initialized
     45  */
     46 lv_theme_t * lv_theme_default_get(void);
     47 
     48 /**
     49  * Check if default theme is initialized
     50  * @return true if default theme is initialized, false otherwise
     51  */
     52 bool lv_theme_default_is_inited(void);
     53 
     54 /**********************
     55  *      MACROS
     56  **********************/
     57 
     58 #endif
     59 
     60 #ifdef __cplusplus
     61 } /*extern "C"*/
     62 #endif
     63 
     64 #endif /*LV_THEME_DEFAULT_H*/