Tactility/Modules/lvgl-module/source/themes/lv_theme_material.h
Ken Van Hoeylandt 24ef79070a
App UX/UI updates and more (#678)
- Refactored many apps' UI/UX
- Improve material themes
- Fix for Tab5 flickering on v1
- Extend dts parser for i2c address/reg support in code
- Fix for I2C Scanner glitch where it would show devices that aren't connected
- Add name labels to I2C Scanner's scanned devices
2026-10-08 22:02:18 +02:00

62 lines
1.4 KiB
C

/* Generated by LSS. Do not edit. */
#ifndef LV_THEME_MATERIAL_H
#define LV_THEME_MATERIAL_H
#include <lvgl.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
bool is_dark;
bool is_compact;
bool animations_enabled;
lv_color_t color_primary;
lv_color_t color_secondary;
lv_color_t color_error;
bool surface_override;
lv_color_t color_surface;
const lv_font_t * font_small;
const lv_font_t * font_normal;
const lv_font_t * font_large;
} lv_theme_material_config_t;
/**
* Reset a config to its default values
* @param config the config to initialize
*/
void lv_theme_material_config_init(lv_theme_material_config_t * config);
/**
* Initialize the theme
* @param disp pointer to display (NULL for the default display)
* @param config the theme config, which is copied
* @return a pointer to reference this theme later
*/
lv_theme_t * lv_theme_material_init(lv_display_t * disp, const lv_theme_material_config_t * config);
/**
* Check if the theme is initialized
* @return true if initialized, false otherwise
*/
bool lv_theme_material_is_inited(void);
/**
* Get the theme
* @return a pointer to the theme, or NULL when not initialized
*/
lv_theme_t * lv_theme_material_get(void);
/**
* Deinitialize the theme
*/
void lv_theme_material_deinit(void);
#ifdef __cplusplus
}
#endif
#endif /* LV_THEME_MATERIAL_H */