目录
LVGL版本:
LVGL v8.3
深色、浅色主题配置所在位置:
在lv_conf.h文件中的476行左右,宏:LV_THEME_DEFAULT_DARK 可直接配置深色、浅色主题:
/*-----------
* Themes
*----------*/
/*A simple, impressive and very complete theme*/
#define LV_USE_THEME_DEFAULT 1
#if LV_USE_THEME_DEFAULT
// 该值配置为1设置为深色模式,背景色默认为黑色。
// 该值为0时设置为浅色模式,背景色默认为白色
/*0: Light mode; 1: Dark mode*/
# define LV_THEME_DEFAULT_DARK 1
/*1: Enable grow on press*/
# define LV_THEME_DEFAULT_GROW 1
/*Default transition time in [ms]*/
# define LV_THEME_DEFAULT_TRANSITON_TIME 80
#endif /*LV_USE_THEME_DEFAULT*/
/*An very simple them that is a good starting point for a custom theme*/
#define LV_USE_THEME_BASIC 1
/*A theme designed for monochrome displays*/
#define LV_USE_THEME_MONO 1
标签:USE,深色,DEFAULT,LV,define,THEME,LVGL,浅色
From: https://www.cnblogs.com/BiAn-weipeng/p/18124693