Tactility/Modules/lvgl-module/source/themes/lv_theme_material.h
Ken Van Hoeylandt 0f12fcce53
New themes (#677)
- Implemented themes with LSS: material, material mono
- Implemented grid-based navigation
- Added new Launcher
- Updated Appearance app to add theme configuration
- Updated various apps to improve UX/UI
- Added LVGL widgets: cards, badges, chips, icon buttons
- Added support for round/rounded displays
- Added the concept of insets to LVGL and implemented it in toolbar + statusbar
- Terminal app now hides toolbar by default, but tapping the terminal toggles visibility
- File browsing now opens the configured user-data location by default
- Added missing licenses to subprojects
- Updated README.md screenshots and intro text
2026-10-07 23:00:09 +02:00

60 lines
1.3 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;
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 */