lib: gui: lvgl: update to v7.0.2
Update LVGL to version 7.0.2. Notable changes in v7 include: - New drawing system (note that it uses much more ROM than previous versions) - New style system - Some objects have been renamed (current changes do not align yet Zephyr Kconfig settings with LVGL) - New fonts with more sizes (e.g. Montserrat, replacing Roboto) - Theme changes (most have been removed, default is now Material) Note that constant defaults have been aligned with LVGL. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
6011aee0d8
commit
5df0ad3194
12 changed files with 1563 additions and 321 deletions
|
@ -42,22 +42,43 @@ endif # LVGL_POINTER_KSCAN
|
||||||
|
|
||||||
config LVGL_HOR_RES
|
config LVGL_HOR_RES
|
||||||
int "Horizontal Screen Resolution"
|
int "Horizontal Screen Resolution"
|
||||||
default 320
|
default 480
|
||||||
help
|
help
|
||||||
Horizontal screen resolution in pixels
|
Horizontal screen resolution in pixels
|
||||||
|
|
||||||
config LVGL_VER_RES
|
config LVGL_VER_RES
|
||||||
int "Vertical Screen Resolution"
|
int "Vertical Screen Resolution"
|
||||||
default 240
|
default 320
|
||||||
help
|
help
|
||||||
Vertical screen resolution in pixels
|
Vertical screen resolution in pixels
|
||||||
|
|
||||||
config LVGL_DPI
|
config LVGL_DPI
|
||||||
int "DPI"
|
int "DPI"
|
||||||
default 100
|
default 130
|
||||||
help
|
help
|
||||||
Dots per inch (DPI)
|
Dots per inch (DPI)
|
||||||
|
|
||||||
|
config LVGL_DISP_SMALL_LIMIT
|
||||||
|
int "Small display limit"
|
||||||
|
default 30
|
||||||
|
help
|
||||||
|
According to the width of the display (hor. res. / dpi) the displays fall
|
||||||
|
in 4 categories. This limit is the threshold for small displays.
|
||||||
|
|
||||||
|
config LVGL_DISP_MEDIUM_LIMIT
|
||||||
|
int "Medium display limit"
|
||||||
|
default 50
|
||||||
|
help
|
||||||
|
According to the width of the display (hor. res. / dpi) the displays fall
|
||||||
|
in 4 categories. This limit is the threshold for medium displays.
|
||||||
|
|
||||||
|
config LVGL_DISP_LARGE_LIMIT
|
||||||
|
int "Large display limit"
|
||||||
|
default 70
|
||||||
|
help
|
||||||
|
According to the width of the display (hor. res. / dpi) the displays fall
|
||||||
|
in 4 categories. This limit is the threshold for large displays.
|
||||||
|
|
||||||
choice LVGL_COLOR_DEPTH
|
choice LVGL_COLOR_DEPTH
|
||||||
prompt "Color Depth"
|
prompt "Color Depth"
|
||||||
default LVGL_COLOR_DEPTH_32
|
default LVGL_COLOR_DEPTH_32
|
||||||
|
@ -234,13 +255,13 @@ endchoice
|
||||||
|
|
||||||
config LVGL_SCREEN_REFRESH_PERIOD
|
config LVGL_SCREEN_REFRESH_PERIOD
|
||||||
int "Screen refresh period"
|
int "Screen refresh period"
|
||||||
default 50
|
default 30
|
||||||
help
|
help
|
||||||
Screen refresh period in milliseconds
|
Screen refresh period in milliseconds
|
||||||
|
|
||||||
config LVGL_INPUT_REFRESH_PERIOD
|
config LVGL_INPUT_REFRESH_PERIOD
|
||||||
int "Input device refresh period"
|
int "Input device refresh period"
|
||||||
default 50
|
default 30
|
||||||
help
|
help
|
||||||
Refresh period for input devices in milliseconds
|
Refresh period for input devices in milliseconds
|
||||||
|
|
||||||
|
@ -252,7 +273,7 @@ config LVGL_INPUT_DRAG_THRESHOLD
|
||||||
|
|
||||||
config LVGL_INPUT_DRAG_THROW_SLOW_DOWN
|
config LVGL_INPUT_DRAG_THROW_SLOW_DOWN
|
||||||
int "Drag throw slow-down"
|
int "Drag throw slow-down"
|
||||||
default 20
|
default 10
|
||||||
range 0 100
|
range 0 100
|
||||||
help
|
help
|
||||||
Percentage of slow down of a throw following a drag.
|
Percentage of slow down of a throw following a drag.
|
||||||
|
@ -271,6 +292,18 @@ config LVGL_INPUT_LONG_RESS_REPEAT_TIME
|
||||||
Period in milliseconds after which a new trigger is generated
|
Period in milliseconds after which a new trigger is generated
|
||||||
for a long press
|
for a long press
|
||||||
|
|
||||||
|
config LVGL_INPUT_GESTURE_LIMIT
|
||||||
|
int "Gesture threshold"
|
||||||
|
default 50
|
||||||
|
help
|
||||||
|
Gesture threshold in pixels
|
||||||
|
|
||||||
|
config LVGL_INPUT_GESTURE_MIN_VELOCITY
|
||||||
|
int "Gesture minimum velocity"
|
||||||
|
default 3
|
||||||
|
help
|
||||||
|
Gesture min velocity at release before swipe (pixels)
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "String character encoding"
|
prompt "String character encoding"
|
||||||
default LVGL_TXT_ENC_ASCII
|
default LVGL_TXT_ENC_ASCII
|
||||||
|
@ -291,7 +324,7 @@ config LVGL_TEXT_BREAK_CHARACTERS
|
||||||
|
|
||||||
config LVGL_TEXT_LINE_BREAK_LONG_LEN
|
config LVGL_TEXT_LINE_BREAK_LONG_LEN
|
||||||
int "Minimal word length for line break"
|
int "Minimal word length for line break"
|
||||||
default 12
|
default 0
|
||||||
help
|
help
|
||||||
If a word is at least this long, a line break is allowed in the word.
|
If a word is at least this long, a line break is allowed in the word.
|
||||||
|
|
||||||
|
@ -344,6 +377,14 @@ choice LVGL_TEXT_BIDI_MODE
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config LVGL_TEXT_ARABIC_PERSIAN_CHARS
|
||||||
|
bool "Enable Arabic/Persian processing"
|
||||||
|
help
|
||||||
|
Enable Arabic/Persian processing
|
||||||
|
|
||||||
|
In these languages characters should be replaced with an other form based
|
||||||
|
on their position in the text
|
||||||
|
|
||||||
config LVGL_ANTIALIAS
|
config LVGL_ANTIALIAS
|
||||||
bool "Enable anti-aliasing"
|
bool "Enable anti-aliasing"
|
||||||
help
|
help
|
||||||
|
@ -359,6 +400,30 @@ config LVGL_SHADOW
|
||||||
help
|
help
|
||||||
Enable shadows
|
Enable shadows
|
||||||
|
|
||||||
|
config LVGL_SHADOW_CACHE_SIZE
|
||||||
|
int "Shadow cache size"
|
||||||
|
depends on LVGL_SHADOW
|
||||||
|
default 0
|
||||||
|
help
|
||||||
|
Allow buffering some shadow calculation. This parameter is the maximum
|
||||||
|
shadow size to buffer.
|
||||||
|
|
||||||
|
config LVGL_BLEND_MODES
|
||||||
|
bool "Enable other blend modes"
|
||||||
|
help
|
||||||
|
Use other blend modes than normal
|
||||||
|
|
||||||
|
config LVGL_OPA_SCALE
|
||||||
|
bool "Enable opa_scale style property"
|
||||||
|
help
|
||||||
|
Use the opa_scale style property to set the opacity of an object and
|
||||||
|
its children at once
|
||||||
|
|
||||||
|
config LVGL_IMG_TRANSFORM
|
||||||
|
bool "Enable image transformations"
|
||||||
|
help
|
||||||
|
Use image zoom and rotation
|
||||||
|
|
||||||
config LVGL_GROUP
|
config LVGL_GROUP
|
||||||
bool "Enable group support"
|
bool "Enable group support"
|
||||||
help
|
help
|
||||||
|
@ -382,11 +447,6 @@ config LVGL_IMG_CF_ALPHA
|
||||||
help
|
help
|
||||||
Enable support for alpha indexed images
|
Enable support for alpha indexed images
|
||||||
|
|
||||||
config LVGL_IMG_INDEXED_CHROMA
|
|
||||||
bool "Enable chroma keying for indexed images"
|
|
||||||
help
|
|
||||||
Enable chroma keying for indexed images
|
|
||||||
|
|
||||||
config LVGL_FILESYSTEM
|
config LVGL_FILESYSTEM
|
||||||
bool "Enable file system"
|
bool "Enable file system"
|
||||||
depends on FILE_SYSTEM
|
depends on FILE_SYSTEM
|
||||||
|
@ -394,6 +454,16 @@ config LVGL_FILESYSTEM
|
||||||
help
|
help
|
||||||
Enable LittlevGL file system
|
Enable LittlevGL file system
|
||||||
|
|
||||||
|
config LVGL_PERF_MONITOR
|
||||||
|
bool "Enable performance monitor"
|
||||||
|
help
|
||||||
|
Show CPU usage and FPS count in the right bottom corner
|
||||||
|
|
||||||
|
config LVGL_API_EXTENSION_V6
|
||||||
|
bool "Enable V6 API extensions"
|
||||||
|
help
|
||||||
|
Use the functions and types from the older API if possible
|
||||||
|
|
||||||
config LVGL_IMG_CACHE_DEF_SIZE
|
config LVGL_IMG_CACHE_DEF_SIZE
|
||||||
int "Default image cache size"
|
int "Default image cache size"
|
||||||
default 1
|
default 1
|
||||||
|
@ -432,6 +502,12 @@ config LVGL_USE_ASSERT_MEM
|
||||||
|
|
||||||
Check if memory allocation is successful (Quite fast)
|
Check if memory allocation is successful (Quite fast)
|
||||||
|
|
||||||
|
config LVGL_USE_ASSERT_MEM_INTEGRITY
|
||||||
|
bool "Enable memory integrity check"
|
||||||
|
default y if TEST
|
||||||
|
help
|
||||||
|
Check the integrity of lv_mem after critical operations. (Slow)
|
||||||
|
|
||||||
config LVGL_USE_ASSERT_STR
|
config LVGL_USE_ASSERT_STR
|
||||||
bool "Enable string assertion"
|
bool "Enable string assertion"
|
||||||
default y if TEST
|
default y if TEST
|
||||||
|
|
|
@ -8,80 +8,127 @@ config LVGL_FONT_SUBPX_BGR
|
||||||
help
|
help
|
||||||
User BGR pixel format instead of RGB for sub-pixel rendering
|
User BGR pixel format instead of RGB for sub-pixel rendering
|
||||||
|
|
||||||
config LVGL_BUILD_IN_FONT_ROBOTO_12
|
config LVGL_FONT_MONTSERRAT_12
|
||||||
bool "Enable build-in 12px fonts"
|
bool "Enable Montserrat 12px font"
|
||||||
help
|
help
|
||||||
Enable build-in font support, size 12 pixels
|
Enable Montserrat font support, size 12 pixels
|
||||||
|
|
||||||
config LVGL_BUILD_IN_FONT_ROBOTO_16
|
config LVGL_FONT_MONTSERRAT_14
|
||||||
bool "Enable build-in 16px fonts"
|
bool "Enable Montserrat 14px font"
|
||||||
help
|
help
|
||||||
Enable build-in font support, size 16 pixels
|
Enable Montserrat font support, size 14 pixels
|
||||||
|
|
||||||
config LVGL_BUILD_IN_FONT_ROBOTO_22
|
config LVGL_FONT_MONTSERRAT_16
|
||||||
bool "Enable build-in 22px fonts"
|
bool "Enable Montserrat 16px font"
|
||||||
help
|
help
|
||||||
Enable build-in font support, size 22 pixels
|
Enable Montserrat font support, size 16 pixels
|
||||||
|
|
||||||
config LVGL_BUILD_IN_FONT_ROBOTO_28
|
config LVGL_FONT_MONTSERRAT_18
|
||||||
bool "Enable build-in 28px fonts"
|
bool "Enable Montserrat 18px font"
|
||||||
help
|
help
|
||||||
Enable build-in font support, size 28 pixels
|
Enable Montserrat font support, size 18 pixels
|
||||||
|
|
||||||
config LVGL_BUILD_IN_FONT_UNSCII_8
|
config LVGL_FONT_MONTSERRAT_20
|
||||||
bool "Enable build-in 8px monospace fonts"
|
bool "Enable Montserrat 20px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 20 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_22
|
||||||
|
bool "Enable Montserrat 22px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 22 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_24
|
||||||
|
bool "Enable Montserrat 24px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 24 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_26
|
||||||
|
bool "Enable Montserrat 26px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 26 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_28
|
||||||
|
bool "Enable Montserrat 28px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 28 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_30
|
||||||
|
bool "Enable Montserrat 30px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 30 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_32
|
||||||
|
bool "Enable Montserrat 32px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 32 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_34
|
||||||
|
bool "Enable Montserrat 34px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 34 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_36
|
||||||
|
bool "Enable Montserrat 36px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 36 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_38
|
||||||
|
bool "Enable Montserrat 38px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 38 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_40
|
||||||
|
bool "Enable Montserrat 40px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 40 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_42
|
||||||
|
bool "Enable Montserrat 42px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 42 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_44
|
||||||
|
bool "Enable Montserrat 44px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 44 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_46
|
||||||
|
bool "Enable Montserrat 46px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 46 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_48
|
||||||
|
bool "Enable Montserrat 48px font"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support, size 48 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_12_SUBPX
|
||||||
|
bool "Enable Montserrat 12px font with sub-pixel rendering"
|
||||||
|
help
|
||||||
|
Enable Montserrat font support with sub-pixel rendering, size 12 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_MONTSERRAT_28_COMPRESSED
|
||||||
|
bool "Enable Montserrat 28px compressed font"
|
||||||
|
help
|
||||||
|
Enable Montserrat compressed font support, size 28 pixels
|
||||||
|
|
||||||
|
config LVGL_FONT_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
bool "Enable Dejavu 16px font with Hebrew, Arabic and Persian letters"
|
||||||
|
help
|
||||||
|
Enable Dejavu font support, size 16 pixels, Hebrew, Arabic, Perisan
|
||||||
|
letters and all their forms
|
||||||
|
|
||||||
|
config LVGL_FONT_SIMSUN_16_CJK
|
||||||
|
bool "Enable Simsun 16px font with CJK radicals"
|
||||||
|
help
|
||||||
|
Enable Simsun font support, size 16 pixels, 1000 most common CJK
|
||||||
|
radicals
|
||||||
|
|
||||||
|
config LVGL_FONT_UNSCII_8
|
||||||
|
bool "Enable Unscii 8px monospace fonts"
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Enable build-in monospace font support, size 8 pixels
|
Enable Unscii monospace font support, size 8 pixels
|
||||||
|
|
||||||
config LVGL_BUILD_IN_FONT_ROBOTO_28_COMPRESSED
|
|
||||||
bool "Enable build-in 28px compressed fonts"
|
|
||||||
help
|
|
||||||
Enable build-in compressed font support, size 28 pixels
|
|
||||||
|
|
||||||
config LVGL_BUILD_IN_FONT_ROBOTO_12_SUBPX
|
|
||||||
bool "Enable build-in 12px fonts with sub-pixel rendering"
|
|
||||||
help
|
|
||||||
Enable build-in font support with sub-pixel rendering, size 12 pixels
|
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "Default LVGL font"
|
|
||||||
default LVGL_DEFAULT_FONT_BUILD_IN_UNSCII_8
|
|
||||||
|
|
||||||
config LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_12
|
|
||||||
bool "Build-in font size 12"
|
|
||||||
depends on LVGL_BUILD_IN_FONT_ROBOTO_12
|
|
||||||
|
|
||||||
config LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_16
|
|
||||||
bool "Build-in font size 16"
|
|
||||||
depends on LVGL_BUILD_IN_FONT_ROBOTO_16
|
|
||||||
|
|
||||||
config LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_22
|
|
||||||
bool "Build-in font size 22"
|
|
||||||
depends on LVGL_BUILD_IN_FONT_ROBOTO_22
|
|
||||||
|
|
||||||
config LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_28
|
|
||||||
bool "Build-in font size 28"
|
|
||||||
depends on LVGL_BUILD_IN_FONT_ROBOTO_28
|
|
||||||
|
|
||||||
config LVGL_DEFAULT_FONT_BUILD_IN_UNSCII_8
|
|
||||||
bool "Build-in monospace font"
|
|
||||||
depends on LVGL_BUILD_IN_FONT_UNSCII_8
|
|
||||||
|
|
||||||
config LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_28_COMPRESSED
|
|
||||||
bool "Build-in compressed font size 28"
|
|
||||||
depends on LVGL_BUILD_IN_FONT_ROBOTO_28_COMPRESSED
|
|
||||||
|
|
||||||
config LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_12_SUBPX
|
|
||||||
bool "Build-in font size 12 with sub-pixel rendering"
|
|
||||||
depends on LVGL_BUILD_IN_FONT_ROBOTO_12_SUBPX
|
|
||||||
|
|
||||||
config LVGL_DEFAULT_FONT_CUSTOM
|
|
||||||
bool "Custom font"
|
|
||||||
help
|
|
||||||
Use a none build-in font as default font. A pointer named lv_default_font_custom_ptr
|
|
||||||
should exists as a global variable and point to a valid font structure
|
|
||||||
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -20,7 +20,6 @@ choice
|
||||||
|
|
||||||
config LVGL_EXT_CLICK_AREA_FULL
|
config LVGL_EXT_CLICK_AREA_FULL
|
||||||
bool "Full flexibility"
|
bool "Full flexibility"
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LVGL_OBJ_LABEL
|
config LVGL_OBJ_LABEL
|
||||||
|
@ -60,6 +59,22 @@ config LVGL_OBJ_IMAGE
|
||||||
help
|
help
|
||||||
Enable image object support
|
Enable image object support
|
||||||
|
|
||||||
|
if LVGL_OBJ_LED
|
||||||
|
|
||||||
|
config LVGL_OBJ_LED_BRIGHT_MIN
|
||||||
|
int "LED minimum brightness"
|
||||||
|
default 120
|
||||||
|
help
|
||||||
|
LED minimum brightness
|
||||||
|
|
||||||
|
config LVGL_OBJ_LED_BRIGHT_MAX
|
||||||
|
int "LED maximum brightness"
|
||||||
|
default 255
|
||||||
|
help
|
||||||
|
LED maximum brightness
|
||||||
|
|
||||||
|
endif # LVGL_OBJ_LED
|
||||||
|
|
||||||
config LVGL_OBJ_LINE
|
config LVGL_OBJ_LINE
|
||||||
bool "Line Object"
|
bool "Line Object"
|
||||||
help
|
help
|
||||||
|
@ -125,41 +140,45 @@ config LVGL_OBJ_CALENDAR
|
||||||
help
|
help
|
||||||
Enable calendar object support
|
Enable calendar object support
|
||||||
|
|
||||||
config LVGL_OBJ_PRELOAD
|
config LVGL_OBJ_SPINNER
|
||||||
bool "Pre-load object"
|
bool "Spinner object"
|
||||||
depends on LVGL_OBJ_ARC
|
depends on LVGL_OBJ_ARC
|
||||||
help
|
help
|
||||||
Enabled pre-load object support
|
Enable spinner object support
|
||||||
|
|
||||||
if LVGL_OBJ_PRELOAD
|
if LVGL_OBJ_SPINNER
|
||||||
|
|
||||||
config LVGL_OBJ_PRELOAD_DEF_ARC_LENGTH
|
config LVGL_OBJ_SPINNER_DEF_ARC_LENGTH
|
||||||
int "Default arc length"
|
int "Default arc length"
|
||||||
range 1 360
|
range 1 360
|
||||||
default 60
|
default 60
|
||||||
help
|
help
|
||||||
Default arc length for pre-load in degrees
|
Default arc length for spinner in degrees
|
||||||
|
|
||||||
config LVGL_OBJ_PRELOAD_DEF_SPIN_TIME
|
config LVGL_OBJ_SPINNER_DEF_SPIN_TIME
|
||||||
int "Default spin time"
|
int "Default spin time"
|
||||||
default 1000
|
default 1000
|
||||||
help
|
help
|
||||||
Default spin time for pre-load in ms
|
Default spin time for spinner in ms
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Default pre-load animation type"
|
prompt "Default spinner animation type"
|
||||||
default LVGL_OBJ_PRELOAD_DEF_ANIMATION_SPIN_ARC
|
default LVGL_OBJ_SPINNER_DEF_ANIM_SPINNING_ARC
|
||||||
help
|
help
|
||||||
Default pre-load animation type
|
Default spinner animation type
|
||||||
|
|
||||||
config LVGL_OBJ_PRELOAD_DEF_ANIMATION_SPIN_ARC
|
config LVGL_OBJ_SPINNER_DEF_ANIM_SPINNING_ARC
|
||||||
bool "Spinning Arc"
|
bool "Spinning arc"
|
||||||
|
|
||||||
config LVGL_OBJ_PRELOAD_DEF_ANIMATION_FILL
|
config LVGL_OBJ_SPINNER_DEF_ANIM_FILLSPIN_ARC
|
||||||
bool "Fill"
|
bool "Fill spin arc"
|
||||||
|
|
||||||
|
config LVGL_OBJ_SPINNER_DEF_ANIM_CONSTANT_ARC
|
||||||
|
bool "Constant arc"
|
||||||
endchoice
|
endchoice
|
||||||
endif
|
|
||||||
|
endif # LVGL_OBJ_SPINNER
|
||||||
|
|
||||||
|
|
||||||
config LVGL_OBJ_CANVAS
|
config LVGL_OBJ_CANVAS
|
||||||
bool "Canvas object"
|
bool "Canvas object"
|
||||||
|
@ -177,6 +196,24 @@ config LVGL_OBJ_LINE_METER
|
||||||
help
|
help
|
||||||
Enable line meter object support
|
Enable line meter object support
|
||||||
|
|
||||||
|
if LVGL_OBJ_LINE_METER
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Line meter drawing precision"
|
||||||
|
default LVGL_OBJ_LINE_METER_PRECISE_NO_EXTRA
|
||||||
|
|
||||||
|
config LVGL_OBJ_LINE_METER_PRECISE_NO_EXTRA
|
||||||
|
bool "No extra precision"
|
||||||
|
|
||||||
|
config LVGL_OBJ_LINE_METER_PRECISE_SOME_EXTRA
|
||||||
|
bool "Some extra precision"
|
||||||
|
|
||||||
|
config LVGL_OBJ_LINE_METER_PRECISE_BEST
|
||||||
|
bool "Best precision"
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
endif # LVGL_OBJ_LINE_METER
|
||||||
|
|
||||||
config LVGL_OBJ_GAUGE
|
config LVGL_OBJ_GAUGE
|
||||||
bool "Gauge object"
|
bool "Gauge object"
|
||||||
depends on LVGL_OBJ_BAR && LVGL_OBJ_LINE_METER
|
depends on LVGL_OBJ_BAR && LVGL_OBJ_LINE_METER
|
||||||
|
@ -190,7 +227,7 @@ config LVGL_OBJ_CHART
|
||||||
|
|
||||||
config LVGL_OBJ_CHART_AXIS_TICK_LABEL_MAX_LEN
|
config LVGL_OBJ_CHART_AXIS_TICK_LABEL_MAX_LEN
|
||||||
int "Maximum length of axis label"
|
int "Maximum length of axis label"
|
||||||
default 20
|
default 256
|
||||||
depends on LVGL_OBJ_CHART
|
depends on LVGL_OBJ_CHART
|
||||||
help
|
help
|
||||||
Maximum length of axis label
|
Maximum length of axis label
|
||||||
|
@ -239,7 +276,7 @@ config LVGL_OBJ_TEXT_AREA_PWD_SHOW_TIME
|
||||||
help
|
help
|
||||||
Password character show time in milliseconds
|
Password character show time in milliseconds
|
||||||
|
|
||||||
endif
|
endif # LVGL_OBJ_TEXT_AREA
|
||||||
|
|
||||||
config LVGL_OBJ_SPINBOX
|
config LVGL_OBJ_SPINBOX
|
||||||
bool "Spinbox object"
|
bool "Spinbox object"
|
||||||
|
@ -253,15 +290,9 @@ config LVGL_OBJ_BUTTON
|
||||||
help
|
help
|
||||||
Enable button object support
|
Enable button object support
|
||||||
|
|
||||||
if LVGL_OBJ_BUTTON
|
|
||||||
|
|
||||||
config LVGL_OBJ_BUTTON_INK_EFFECT
|
|
||||||
bool "Enable ink effect"
|
|
||||||
help
|
|
||||||
Enable ink, press, effect for buttons
|
|
||||||
|
|
||||||
config LVGL_OBJ_IMG_BUTTON
|
config LVGL_OBJ_IMG_BUTTON
|
||||||
bool "Image Button"
|
bool "Image Button"
|
||||||
|
depends on LVGL_OBJ_BUTTON
|
||||||
help
|
help
|
||||||
Enable image button object support
|
Enable image button object support
|
||||||
|
|
||||||
|
@ -271,8 +302,6 @@ config LVGL_OBJ_IMG_BUTTON_TILED
|
||||||
help
|
help
|
||||||
Enable tile support for image button
|
Enable tile support for image button
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
config LVGL_OBJ_BUTTON_MATRIX
|
config LVGL_OBJ_BUTTON_MATRIX
|
||||||
bool "Button Matrix object"
|
bool "Button Matrix object"
|
||||||
help
|
help
|
||||||
|
@ -296,12 +325,12 @@ config LVGL_OBJ_LIST
|
||||||
help
|
help
|
||||||
Enable list object support
|
Enable list object support
|
||||||
|
|
||||||
config LVGL_OBJ_LIST_FOCUS_TIME
|
config LVGL_OBJ_LIST_DEF_ANIM_TIME
|
||||||
int "List focus time"
|
int "List focus default animation time"
|
||||||
default 100
|
default 100
|
||||||
depends on LVGL_OBJ_LIST
|
depends on LVGL_OBJ_LIST
|
||||||
help
|
help
|
||||||
List focus animation time in milliseconds
|
List focus default animation time in milliseconds
|
||||||
|
|
||||||
config LVGL_OBJ_COLOR_PICKER
|
config LVGL_OBJ_COLOR_PICKER
|
||||||
bool "Color picker object"
|
bool "Color picker object"
|
||||||
|
@ -355,4 +384,9 @@ config LVGL_OBJ_SWITCH
|
||||||
help
|
help
|
||||||
Enable switch object support
|
Enable switch object support
|
||||||
|
|
||||||
|
config LVGL_OBJ_OBJMASK
|
||||||
|
bool "Mask object"
|
||||||
|
help
|
||||||
|
Enable object mask support
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -1,56 +1,666 @@
|
||||||
# Copyright (c) 2018 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
# Copyright (c) 2018 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
||||||
|
# Copyright (c) 2020 Teslabs Engineering S.L.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
menu "Themes"
|
menu "Themes"
|
||||||
|
|
||||||
config LVGL_THEMES
|
choice
|
||||||
bool "Enable build-in themes"
|
prompt "Theme"
|
||||||
|
default LVGL_THEME_EMPTY
|
||||||
|
|
||||||
|
config LVGL_THEME_EMPTY
|
||||||
|
bool "Empty theme"
|
||||||
|
help
|
||||||
|
No theme, you can apply your styles as you need
|
||||||
|
|
||||||
|
config LVGL_THEME_MATERIAL
|
||||||
|
bool "Material theme"
|
||||||
|
help
|
||||||
|
Material theme, flat theme with bold colors and light shadow, support
|
||||||
|
|
||||||
|
config LVGL_THEME_MONO
|
||||||
|
bool "Mono theme"
|
||||||
|
help
|
||||||
|
Mono theme, monochrome, support
|
||||||
|
|
||||||
|
config LVGL_THEME_CUSTOM
|
||||||
|
bool "Custom theme"
|
||||||
|
help
|
||||||
|
Custom theme.
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
if LVGL_THEME_MATERIAL
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Default material theme flags"
|
||||||
|
default LVGL_THEME_MATERIAL_LIGHT
|
||||||
|
|
||||||
|
config LVGL_THEME_MATERIAL_LIGHT
|
||||||
|
bool "Light"
|
||||||
|
|
||||||
|
config LVGL_THEME_MATERIAL_DARK
|
||||||
|
bool "Dark"
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
endif # LVGL_THEME_MATERIAL
|
||||||
|
|
||||||
|
if LVGL_THEME_CUSTOM
|
||||||
|
|
||||||
|
config LVGL_THEME_CUSTOM_INIT_FUNCTION
|
||||||
|
string "Custom theme initialization function"
|
||||||
|
|
||||||
|
endif # LVGL_THEME_CUSTOM
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Default theme primary color"
|
||||||
|
default LVGL_THEME_DEFAULT_COLOR_PRIMARY_RED
|
||||||
|
default LVGL_THEME_DEFAULT_COLOR_PRIMARY_BLACK if LVGL_THEME_MONO
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_WHITE
|
||||||
|
bool "White"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_SILVER
|
||||||
|
bool "Silver"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_GRAY
|
||||||
|
bool "Gray"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_BLACK
|
||||||
|
bool "Black"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_RED
|
||||||
|
bool "Red"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_MAROON
|
||||||
|
bool "Maroon"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_YELLOW
|
||||||
|
bool "Yellow"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_OLIVE
|
||||||
|
bool "Olive"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_LIME
|
||||||
|
bool "Lime"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_GREEN
|
||||||
|
bool "Green"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_CYAN
|
||||||
|
bool "Cyan"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_AQUA
|
||||||
|
bool "Aqua"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_TEAL
|
||||||
|
bool "Teal"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_BLUE
|
||||||
|
bool "Blue"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_NAVY
|
||||||
|
bool "Navy"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_MAGENTA
|
||||||
|
bool "Magenta"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_PURPLE
|
||||||
|
bool "Purple"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_ORANGE
|
||||||
|
bool "Orange"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM
|
||||||
|
bool "Custom"
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
if LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM_RED
|
||||||
|
hex "Custom primary color (red)"
|
||||||
|
range 0x00 0xFF
|
||||||
|
default 0x00
|
||||||
help
|
help
|
||||||
Enable build-in themes
|
Custom primary color RGB red channel
|
||||||
|
|
||||||
if LVGL_THEMES
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM_GREEN
|
||||||
|
hex "Custom primary color (green)"
|
||||||
config LVGL_THEME_LIVE_UPDATE
|
range 0x00 0xFF
|
||||||
bool "Enable runtime theme switching"
|
default 0x00
|
||||||
help
|
help
|
||||||
Enable runtime theme switching, this will consume 8 to 10kB of RAM.
|
Custom primary color RGB green channel
|
||||||
|
|
||||||
config LVGL_THEME_DEFAULT
|
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM_BLUE
|
||||||
bool "Enable default theme support"
|
hex "Custom primary color (blue)"
|
||||||
|
range 0x00 0xFF
|
||||||
|
default 0x00
|
||||||
help
|
help
|
||||||
Enable default theme support.
|
Custom primary color RGB blue channel
|
||||||
Low RAM footprint theme.
|
|
||||||
|
|
||||||
config LVGL_THEME_ALIEN
|
endif # LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM
|
||||||
bool "Enable alien theme support"
|
|
||||||
|
choice
|
||||||
|
prompt "Default theme secondary color"
|
||||||
|
default LVGL_THEME_DEFAULT_COLOR_SECONDARY_RED
|
||||||
|
default LVGL_THEME_DEFAULT_COLOR_SECONDARY_BLACK if LVGL_THEME_MONO
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_WHITE
|
||||||
|
bool "White"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_SILVER
|
||||||
|
bool "Silver"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_GRAY
|
||||||
|
bool "Gray"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_BLACK
|
||||||
|
bool "Black"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_RED
|
||||||
|
bool "Red"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_MAROON
|
||||||
|
bool "Maroon"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_YELLOW
|
||||||
|
bool "Yellow"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_OLIVE
|
||||||
|
bool "Olive"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_LIME
|
||||||
|
bool "Lime"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_GREEN
|
||||||
|
bool "Green"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_CYAN
|
||||||
|
bool "Cyan"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_AQUA
|
||||||
|
bool "Aqua"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_TEAL
|
||||||
|
bool "Teal"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_BLUE
|
||||||
|
bool "Blue"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_NAVY
|
||||||
|
bool "Navy"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_MAGENTA
|
||||||
|
bool "Magenta"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_PURPLE
|
||||||
|
bool "Purple"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_ORANGE
|
||||||
|
bool "Orange"
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM
|
||||||
|
bool "Custom"
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
if LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM_RED
|
||||||
|
hex "Custom secondary color (red)"
|
||||||
|
range 0x00 0xFF
|
||||||
|
default 0x00
|
||||||
help
|
help
|
||||||
Enable alien theme, dark futuristic, support
|
Custom secondary color RGB red channel
|
||||||
|
|
||||||
config LVGL_THEME_NIGHT
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM_GREEN
|
||||||
bool "Enable night theme support"
|
hex "Custom secondary color (green)"
|
||||||
|
range 0x00 0xFF
|
||||||
|
default 0x00
|
||||||
help
|
help
|
||||||
Enable night theme, dark elegant, support
|
Custom secondary color RGB green channel
|
||||||
|
|
||||||
config LVGL_THEME_MONO
|
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM_BLUE
|
||||||
bool "Enable mono theme support"
|
hex "Custom secondary color (blue)"
|
||||||
|
range 0x00 0xFF
|
||||||
|
default 0x00
|
||||||
help
|
help
|
||||||
Enable mono theme, monochrome, support
|
Custom secondary color RGB blue channel
|
||||||
|
|
||||||
config LVGL_THEME_MATERIAL
|
endif # LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM
|
||||||
bool "Enable material theme support"
|
|
||||||
help
|
|
||||||
Enable material theme, flat theme with bold colors and light shadow, support
|
|
||||||
|
|
||||||
config LVGL_THEME_ZEN
|
choice
|
||||||
bool "Enable zen theme support"
|
prompt "Default theme small font"
|
||||||
help
|
default LVGL_THEME_DEFAULT_FONT_SMALL_UNSCII_8
|
||||||
Enable zen theme, peaceful light theme, support
|
|
||||||
|
|
||||||
config LVGL_THEME_NEMO
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_12
|
||||||
bool "Enable nemo theme support"
|
bool "Build-in font size 12"
|
||||||
help
|
depends on LVGL_FONT_MONTSERRAT_12
|
||||||
Enable water-like theme based on the movie "Finding Nemo"
|
|
||||||
|
|
||||||
endif
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_14
|
||||||
|
bool "Build-in font size 14"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_14
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_16
|
||||||
|
bool "Build-in font size 16"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_16
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_18
|
||||||
|
bool "Build-in font size 18"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_18
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_20
|
||||||
|
bool "Build-in font size 20"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_20
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_22
|
||||||
|
bool "Build-in font size 22"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_22
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_24
|
||||||
|
bool "Build-in font size 24"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_24
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_26
|
||||||
|
bool "Build-in font size 26"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_26
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_28
|
||||||
|
bool "Build-in font size 28"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_28
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_30
|
||||||
|
bool "Build-in font size 30"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_30
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_32
|
||||||
|
bool "Build-in font size 32"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_32
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_34
|
||||||
|
bool "Build-in font size 34"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_34
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_36
|
||||||
|
bool "Build-in font size 36"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_36
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_38
|
||||||
|
bool "Build-in font size 38"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_38
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_40
|
||||||
|
bool "Build-in font size 40"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_40
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_42
|
||||||
|
bool "Build-in font size 42"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_42
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_44
|
||||||
|
bool "Build-in font size 44"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_44
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_46
|
||||||
|
bool "Build-in font size 46"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_46
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_48
|
||||||
|
bool "Build-in font size 48"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_48
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_12_SUBPX
|
||||||
|
bool "Build-in font size 12 with sub-pixel rendering"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_12_SUBPX
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_28_COMPRESSED
|
||||||
|
bool "Build-in compressed font size 28"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_28_COMPRESSED
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
bool "Build-in font size 16 with Hebrew, Arabic and Persian"
|
||||||
|
depends on LVGL_FONT_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_SIMSUN_16_CJK
|
||||||
|
bool "Build-in font size 16 with CJK radicals"
|
||||||
|
depends on LVGL_FONT_SIMSUN_16_CJK
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_UNSCII_8
|
||||||
|
bool "Build-in monospace font"
|
||||||
|
depends on LVGL_FONT_UNSCII_8
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SMALL_CUSTOM
|
||||||
|
bool "Custom font"
|
||||||
|
help
|
||||||
|
Use a none build-in font as default small font. A pointer named
|
||||||
|
lv_theme_default_small_font_custom_ptr should exists as a global
|
||||||
|
variable and point to a valid font structure
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Default theme normal font"
|
||||||
|
default LVGL_THEME_DEFAULT_FONT_NORMAL_UNSCII_8
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_12
|
||||||
|
bool "Build-in font size 12"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_12
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_14
|
||||||
|
bool "Build-in font size 14"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_14
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_16
|
||||||
|
bool "Build-in font size 16"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_16
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_18
|
||||||
|
bool "Build-in font size 18"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_18
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_20
|
||||||
|
bool "Build-in font size 20"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_20
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_22
|
||||||
|
bool "Build-in font size 22"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_22
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_24
|
||||||
|
bool "Build-in font size 24"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_24
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_26
|
||||||
|
bool "Build-in font size 26"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_26
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_28
|
||||||
|
bool "Build-in font size 28"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_28
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_30
|
||||||
|
bool "Build-in font size 30"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_30
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_32
|
||||||
|
bool "Build-in font size 32"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_32
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_34
|
||||||
|
bool "Build-in font size 34"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_34
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_36
|
||||||
|
bool "Build-in font size 36"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_36
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_38
|
||||||
|
bool "Build-in font size 38"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_38
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_40
|
||||||
|
bool "Build-in font size 40"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_40
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_42
|
||||||
|
bool "Build-in font size 42"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_42
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_44
|
||||||
|
bool "Build-in font size 44"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_44
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_46
|
||||||
|
bool "Build-in font size 46"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_46
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_48
|
||||||
|
bool "Build-in font size 48"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_48
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_12_SUBPX
|
||||||
|
bool "Build-in font size 12 with sub-pixel rendering"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_12_SUBPX
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_28_COMPRESSED
|
||||||
|
bool "Build-in compressed font size 28"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_28_COMPRESSED
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
bool "Build-in font size 16 with Hebrew, Arabic and Persian"
|
||||||
|
depends on LVGL_FONT_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_SIMSUN_16_CJK
|
||||||
|
bool "Build-in font size 16 with CJK radicals"
|
||||||
|
depends on LVGL_FONT_SIMSUN_16_CJK
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_UNSCII_8
|
||||||
|
bool "Build-in monospace font"
|
||||||
|
depends on LVGL_FONT_UNSCII_8
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_NORMAL_CUSTOM
|
||||||
|
bool "Custom font"
|
||||||
|
help
|
||||||
|
Use a none build-in font as default normal font. A pointer named
|
||||||
|
lv_theme_default_normal_font_custom_ptr should exists as a global
|
||||||
|
variable and point to a valid font structure
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Default theme subtitle font"
|
||||||
|
default LVGL_THEME_DEFAULT_FONT_SUBTITLE_UNSCII_8
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_12
|
||||||
|
bool "Build-in font size 12"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_12
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_14
|
||||||
|
bool "Build-in font size 14"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_14
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_16
|
||||||
|
bool "Build-in font size 16"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_16
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_18
|
||||||
|
bool "Build-in font size 18"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_18
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_20
|
||||||
|
bool "Build-in font size 20"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_20
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_22
|
||||||
|
bool "Build-in font size 22"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_22
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_24
|
||||||
|
bool "Build-in font size 24"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_24
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_26
|
||||||
|
bool "Build-in font size 26"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_26
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_28
|
||||||
|
bool "Build-in font size 28"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_28
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_30
|
||||||
|
bool "Build-in font size 30"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_30
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_32
|
||||||
|
bool "Build-in font size 32"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_32
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_34
|
||||||
|
bool "Build-in font size 34"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_34
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_36
|
||||||
|
bool "Build-in font size 36"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_36
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_38
|
||||||
|
bool "Build-in font size 38"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_38
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_40
|
||||||
|
bool "Build-in font size 40"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_40
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_42
|
||||||
|
bool "Build-in font size 42"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_42
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_44
|
||||||
|
bool "Build-in font size 44"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_44
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_46
|
||||||
|
bool "Build-in font size 46"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_46
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_48
|
||||||
|
bool "Build-in font size 48"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_48
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_12_SUBPX
|
||||||
|
bool "Build-in font size 12 with sub-pixel rendering"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_12_SUBPX
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_28_COMPRESSED
|
||||||
|
bool "Build-in compressed font size 28"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_28_COMPRESSED
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
bool "Build-in font size 16 with Hebrew, Arabic and Persian"
|
||||||
|
depends on LVGL_FONT_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_SIMSUN_16_CJK
|
||||||
|
bool "Build-in font size 16 with CJK radicals"
|
||||||
|
depends on LVGL_FONT_SIMSUN_16_CJK
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_UNSCII_8
|
||||||
|
bool "Build-in monospace font"
|
||||||
|
depends on LVGL_FONT_UNSCII_8
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_SUBTITLE_CUSTOM
|
||||||
|
bool "Custom font"
|
||||||
|
help
|
||||||
|
Use a none build-in font as default subtitle font. A pointer named
|
||||||
|
lv_theme_default_small_font_subtitle_ptr should exists as a global
|
||||||
|
variable and point to a valid font structure
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Default theme title font"
|
||||||
|
default LVGL_THEME_DEFAULT_FONT_TITLE_UNSCII_8
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_12
|
||||||
|
bool "Build-in font size 12"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_12
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_14
|
||||||
|
bool "Build-in font size 14"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_14
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_16
|
||||||
|
bool "Build-in font size 16"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_16
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_18
|
||||||
|
bool "Build-in font size 18"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_18
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_20
|
||||||
|
bool "Build-in font size 20"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_20
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_22
|
||||||
|
bool "Build-in font size 22"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_22
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_24
|
||||||
|
bool "Build-in font size 24"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_24
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_26
|
||||||
|
bool "Build-in font size 26"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_26
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_28
|
||||||
|
bool "Build-in font size 28"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_28
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_30
|
||||||
|
bool "Build-in font size 30"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_30
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_32
|
||||||
|
bool "Build-in font size 32"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_32
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_34
|
||||||
|
bool "Build-in font size 34"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_34
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_36
|
||||||
|
bool "Build-in font size 36"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_36
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_38
|
||||||
|
bool "Build-in font size 38"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_38
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_40
|
||||||
|
bool "Build-in font size 40"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_40
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_42
|
||||||
|
bool "Build-in font size 42"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_42
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_44
|
||||||
|
bool "Build-in font size 44"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_44
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_46
|
||||||
|
bool "Build-in font size 46"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_46
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_48
|
||||||
|
bool "Build-in font size 48"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_48
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_12_SUBPX
|
||||||
|
bool "Build-in font size 12 with sub-pixel rendering"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_12_SUBPX
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_28_COMPRESSED
|
||||||
|
bool "Build-in compressed font size 28"
|
||||||
|
depends on LVGL_FONT_MONTSERRAT_28_COMPRESSED
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
bool "Build-in font size 16 with Hebrew, Arabic and Persian"
|
||||||
|
depends on LVGL_FONT_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_SIMSUN_16_CJK
|
||||||
|
bool "Build-in font size 16 with CJK radicals"
|
||||||
|
depends on LVGL_FONT_SIMSUN_16_CJK
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_UNSCII_8
|
||||||
|
bool "Build-in monospace font"
|
||||||
|
depends on LVGL_FONT_UNSCII_8
|
||||||
|
|
||||||
|
config LVGL_THEME_DEFAULT_FONT_TITLE_CUSTOM
|
||||||
|
bool "Custom font"
|
||||||
|
help
|
||||||
|
Use a none build-in font as default title font. A pointer named
|
||||||
|
lv_theme_default_small_font_title_ptr should exists as a global
|
||||||
|
variable and point to a valid font structure
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
* Copyright (c) 2018-2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
||||||
|
* Copyright (c) 2020 Teslabs Engineering S.L.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -46,15 +47,10 @@
|
||||||
#elif defined(CONFIG_LVGL_CHROMA_KEY_BLUE)
|
#elif defined(CONFIG_LVGL_CHROMA_KEY_BLUE)
|
||||||
#define LV_COLOR_TRANSP LV_COLOR_BLUE
|
#define LV_COLOR_TRANSP LV_COLOR_BLUE
|
||||||
#elif defined(CONFIG_LVGL_CHROMA_KEY_CUSTOM)
|
#elif defined(CONFIG_LVGL_CHROMA_KEY_CUSTOM)
|
||||||
#define LV_COLOR_TRANSP LV_COLOR_MAKE(CONFIG_LVGL_CUSTOM_CHROMA_KEY_RED, \
|
#define LV_COLOR_TRANSP \
|
||||||
CONFIG_LVGL_CUSTOM_CHROMA_KEY_GREEN, \
|
LV_COLOR_MAKE(CONFIG_LVGL_CUSTOM_CHROMA_KEY_RED, \
|
||||||
CONFIG_LVGL_CUSTOM_CHROMA_KEY_BLUE)
|
CONFIG_LVGL_CUSTOM_CHROMA_KEY_GREEN, \
|
||||||
#endif
|
CONFIG_LVGL_CUSTOM_CHROMA_KEY_BLUE)
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_IMG_INDEXED_CHROMA
|
|
||||||
#define LV_INDEXED_CHROMA 1
|
|
||||||
#else
|
|
||||||
#define LV_INDEXED_CHROMA 0
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_ANTIALIAS
|
#ifdef CONFIG_LVGL_ANTIALIAS
|
||||||
|
@ -67,6 +63,10 @@
|
||||||
|
|
||||||
#define LV_DPI CONFIG_LVGL_DPI
|
#define LV_DPI CONFIG_LVGL_DPI
|
||||||
|
|
||||||
|
#define LV_DISP_SMALL_LIMIT CONFIG_LVGL_DISP_SMALL_LIMIT
|
||||||
|
#define LV_DISP_MEDIUM_LIMIT CONFIG_LVGL_DISP_MEDIUM_LIMIT
|
||||||
|
#define LV_DISP_LARGE_LIMIT CONFIG_LVGL_DISP_LARGE_LIMIT
|
||||||
|
|
||||||
typedef short lv_coord_t;
|
typedef short lv_coord_t;
|
||||||
|
|
||||||
/* Memory manager settings */
|
/* Memory manager settings */
|
||||||
|
@ -108,6 +108,10 @@ typedef short lv_coord_t;
|
||||||
#define LV_INDEV_DEF_LONG_PRESS_REP_TIME \
|
#define LV_INDEV_DEF_LONG_PRESS_REP_TIME \
|
||||||
CONFIG_LVGL_INPUT_LONG_RESS_REPEAT_TIME
|
CONFIG_LVGL_INPUT_LONG_RESS_REPEAT_TIME
|
||||||
|
|
||||||
|
#define LV_INDEV_DEF_GESTURE_LIMIT CONFIG_LVGL_INPUT_GESTURE_LIMIT
|
||||||
|
|
||||||
|
#define LV_INDEV_DEF_GESTURE_MIN_VELOCITY CONFIG_LVGL_INPUT_GESTURE_MIN_VELOCITY
|
||||||
|
|
||||||
/* Feature usage */
|
/* Feature usage */
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_ANIMATION
|
#ifdef CONFIG_LVGL_ANIMATION
|
||||||
|
@ -126,6 +130,28 @@ typedef void *lv_anim_user_data_t;
|
||||||
#define LV_USE_SHADOW 0
|
#define LV_USE_SHADOW 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if LV_USE_SHADOW
|
||||||
|
#define LV_SHADOW_CACHE_SIZE CONFIG_LVGL_SHADOW_CACHE_SIZE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_BLEND_MODES
|
||||||
|
#define LV_USE_BLEND_MODES 1
|
||||||
|
#else
|
||||||
|
#define LV_USE_BLEND_MODES 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_OPA_SCALE
|
||||||
|
#define LV_USE_OPA_SCALE 1
|
||||||
|
#else
|
||||||
|
#define LV_USE_OPA_SCALE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_IMG_TRANSFORM
|
||||||
|
#define LV_USE_IMG_TRANSFORM 1
|
||||||
|
#else
|
||||||
|
#define LV_USE_IMG_TRANSFORM 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_GROUP
|
#ifdef CONFIG_LVGL_GROUP
|
||||||
#define LV_USE_GROUP 1
|
#define LV_USE_GROUP 1
|
||||||
#else
|
#else
|
||||||
|
@ -154,6 +180,18 @@ typedef void *lv_fs_drv_user_data_t;
|
||||||
|
|
||||||
#define LV_USE_USER_DATA 1
|
#define LV_USE_USER_DATA 1
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_PERF_MONITOR
|
||||||
|
#define LV_USE_PERF_MONITOR 1
|
||||||
|
#else
|
||||||
|
#define LV_USE_PERF_MONITOR 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_API_EXTENSION_V6
|
||||||
|
#define LV_USE_API_EXTENSION_V6 1
|
||||||
|
#else
|
||||||
|
#define LV_USE_API_EXTENSION_V6 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Image decoder and cache */
|
/* Image decoder and cache */
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_IMG_CF_INDEXED
|
#ifdef CONFIG_LVGL_IMG_CF_INDEXED
|
||||||
|
@ -235,6 +273,12 @@ typedef void *lv_indev_drv_user_data_t;
|
||||||
#define LV_USE_ASSERT_MEM 0
|
#define LV_USE_ASSERT_MEM 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_USE_ASSERT_MEM_INTEGRITY
|
||||||
|
#define LV_USE_ASSERT_MEM_INTEGRITY 1
|
||||||
|
#else
|
||||||
|
#define LV_USE_ASSERT_MEM_INTEGRITY 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_USE_ASSERT_STR
|
#ifdef CONFIG_LVGL_USE_ASSERT_STR
|
||||||
#define LV_USE_ASSERT_STR 1
|
#define LV_USE_ASSERT_STR 1
|
||||||
#else
|
#else
|
||||||
|
@ -257,140 +301,522 @@ typedef void *lv_indev_drv_user_data_t;
|
||||||
|
|
||||||
/* THEME USAGE */
|
/* THEME USAGE */
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_THEMES
|
/* Empty theme */
|
||||||
|
#ifdef CONFIG_LVGL_THEME_EMPTY
|
||||||
#define LV_THEME_LIVE_UPDATE CONFIG_LVGL_THEME_LIVE_UPDATE
|
#define LV_USE_THEME_EMPTY 1
|
||||||
|
|
||||||
#define LV_USE_THEME_TEMPL 0
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_THEME_DEFAULT
|
|
||||||
#define LV_USE_THEME_DEFAULT 1
|
|
||||||
#else
|
#else
|
||||||
#define LV_USE_THEME_DEFAULT 0
|
#define LV_USE_THEME_EMPTY 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_THEME_ALIEN
|
#if LV_USE_THEME_EMPTY
|
||||||
#define LV_USE_THEME_ALIEN 1
|
#define LV_THEME_DEFAULT_FLAG 0
|
||||||
#else
|
#define LV_THEME_DEFAULT_INIT lv_theme_empty_init
|
||||||
#define LV_USE_THEME_ALIEN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_THEME_NIGHT
|
|
||||||
#define LV_USE_THEME_NIGHT 1
|
|
||||||
#else
|
|
||||||
#define LV_USE_THEME_NIGHT 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_THEME_MONO
|
|
||||||
#define LV_USE_THEME_MONO 1
|
|
||||||
#else
|
|
||||||
#define LV_USE_THEME_MONO 0
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Material theme */
|
||||||
#ifdef CONFIG_LVGL_THEME_MATERIAL
|
#ifdef CONFIG_LVGL_THEME_MATERIAL
|
||||||
#define LV_USE_THEME_MATERIAL 1
|
#define LV_USE_THEME_MATERIAL 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_THEME_MATERIAL 0
|
#define LV_USE_THEME_MATERIAL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_THEME_ZEN
|
#if LV_USE_THEME_MATERIAL
|
||||||
#define LV_USE_THEME_ZEN 1
|
#define LV_THEME_DEFAULT_INIT lv_theme_material_init
|
||||||
#else
|
|
||||||
#define LV_USE_THEME_ZEN 0
|
#if defined(CONFIG_LVGL_THEME_MATERIAL_LIGHT)
|
||||||
|
#define LV_THEME_DEFAULT_FLAG LV_THEME_MATERIAL_FLAG_LIGHT
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_MATERIAL_DARK)
|
||||||
|
#define LV_THEME_DEFAULT_FLAG LV_THEME_MATERIAL_FLAG_DARK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_THEME_NEMO
|
|
||||||
#define LV_USE_THEME_NEMO 1
|
|
||||||
#else
|
|
||||||
#define LV_USE_THEME_NEMO 0
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Mono-color theme */
|
||||||
|
#ifdef CONFIG_LVGL_THEME_MONO
|
||||||
|
#define LV_USE_THEME_MONO 1
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define LV_THEME_LIVE_UPDATE 0
|
|
||||||
|
|
||||||
#define LV_USE_THEME_TEMPL 0
|
|
||||||
#define LV_USE_THEME_DEFAULT 0
|
|
||||||
#define LV_USE_THEME_ALIEN 0
|
|
||||||
#define LV_USE_THEME_NIGHT 0
|
|
||||||
#define LV_USE_THEME_MONO 0
|
#define LV_USE_THEME_MONO 0
|
||||||
#define LV_USE_THEME_MATERIAL 0
|
#endif
|
||||||
#define LV_USE_THEME_ZEN 0
|
|
||||||
#define LV_USE_THEME_NEMO 0
|
|
||||||
|
|
||||||
|
#if LV_USE_THEME_MONO
|
||||||
|
#define LV_THEME_DEFAULT_INIT lv_theme_mono_init
|
||||||
|
#define LV_THEME_DEFAULT_FLAG 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Custom theme */
|
||||||
|
#if CONFIG_LVGL_THEME_CUSTOM
|
||||||
|
|
||||||
|
lv_theme_t *LVGL_THEME_CUSTOM_INIT_FUNCTION(
|
||||||
|
lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags,
|
||||||
|
const lv_font_t *font_small, const lv_font_t *font_normal,
|
||||||
|
const lv_font_t *font_subtitle, const lv_font_t *font_title);
|
||||||
|
|
||||||
|
#define LV_THEME_DEFAULT_INIT LVGL_THEME_CUSTOM_INIT_FUNCTION
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Theme primary color */
|
||||||
|
#if defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_WHITE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_WHITE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_SILVER)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_SILVER
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_GRAY)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_GRAY
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_BLACK)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_BLACK
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_RED)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_RED
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_MAROON)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_MAROON
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_YELLOW)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_YELLOW
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_OLIVE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_OLIVE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_LIME)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_LIME
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_GREEN)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_GREEN
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_CYAN)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_CYAN
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_AQUA)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_AQUA
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_TEAL)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_TEAL
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_BLUE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_BLUE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_NAVY)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_NAVY
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_MAGENTA)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_MAGENTA
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_PURPLE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_PURPLE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_ORANGE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_ORANGE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY \
|
||||||
|
LV_COLOR_MAKE(CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM_RED, \
|
||||||
|
CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM_GREEN, \
|
||||||
|
CONFIG_LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM_BLUE)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Theme secondary color */
|
||||||
|
#if defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_WHITE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_WHITE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_SILVER)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_SILVER
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_GRAY)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_GRAY
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_BLACK)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_BLACK
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_RED)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_RED
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_MAROON)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_MAROON
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_YELLOW)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_YELLOW
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_OLIVE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_OLIVE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_LIME)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_LIME
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_GREEN)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_GREEN
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_CYAN)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_CYAN
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_AQUA)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_AQUA
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_TEAL)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_TEAL
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_BLUE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_BLUE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_NAVY)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_NAVY
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_MAGENTA)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_MAGENTA
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_PURPLE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_PURPLE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_ORANGE)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_ORANGE
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM)
|
||||||
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY \
|
||||||
|
LV_COLOR_MAKE(CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM_RED, \
|
||||||
|
CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM_GREEN, \
|
||||||
|
CONFIG_LVGL_THEME_DEFAULT_COLOR_SECONDARY_CUSTOM_BLUE)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Theme small font */
|
||||||
|
#if defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_12)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_12)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_14)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_14)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_16)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_16)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_18)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_18)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_20)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_20)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_22)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_22)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_24)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_24)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_26)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_26)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_28)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_28)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_30)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_30)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_32)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_32)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_34)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_34)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_36)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_36)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_38)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_38)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_40)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_40)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_42)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_42)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_44)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_44)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_46)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_46)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_48)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_48)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_12_SUBPX)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_12_subpx)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_28_COMPRESSED)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_montserrat_28_compressed)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_DEJAVU_16_PERSIAN_HEBREW)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_dejavu_16_persian_hebrew)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_SIMSUN_16_CJK)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_simsun_16_cjk)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_UNSCII_8)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL (&lv_font_unscii_8)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_CUSTOM)
|
||||||
|
extern void *lv_theme_default_font_small_custom_ptr;
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SMALL \
|
||||||
|
((lv_font_t *)lv_theme_default_font_small_custom_ptr)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Theme normal font */
|
||||||
|
#if defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_12)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_12)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_14)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_14)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_16)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_16)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_18)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_18)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_20)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_20)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_22)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_22)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_24)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_24)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_26)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_26)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_28)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_28)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_30)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_30)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_32)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_32)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_34)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_34)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_36)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_36)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_38)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_38)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_40)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_40)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_42)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_42)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_44)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_44)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_46)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_46)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_48)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_48)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_12_SUBPX)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_12_subpx)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_28_COMPRESSED)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_montserrat_28_compressed)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_DEJAVU_16_PERSIAN_HEBREW)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_dejavu_16_persian_hebrew)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_SIMSUN_16_CJK)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_simsun_16_cjk)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_UNSCII_8)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL (&lv_font_unscii_8)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_CUSTOM)
|
||||||
|
extern void *lv_theme_default_font_normal_custom_ptr;
|
||||||
|
#define LV_THEME_DEFAULT_FONT_NORMAL \
|
||||||
|
((lv_font_t *)lv_theme_default_font_normal_custom_ptr)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Theme subtitle font */
|
||||||
|
#if defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_12)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_12)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_14)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_14)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_16)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_16)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_18)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_18)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_20)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_20)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_22)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_22)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_24)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_24)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_26)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_26)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_28)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_28)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_30)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_30)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_32)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_32)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_34)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_34)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_36)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_36)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_38)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_38)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_40)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_40)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_42)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_42)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_44)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_44)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_46)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_46)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_48)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_48)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_12_SUBPX)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_12_subpx)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_MONTSERRAT_28_COMPRESSED)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_montserrat_28_compressed)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_DEJAVU_16_PERSIAN_HEBREW)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_dejavu_16_persian_hebrew)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_SIMSUN_16_CJK)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_simsun_16_cjk)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_UNSCII_8)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE (&lv_font_unscii_8)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_SUBTITLE_CUSTOM)
|
||||||
|
extern void *lv_theme_default_font_subtitle_custom_ptr;
|
||||||
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE \
|
||||||
|
((lv_font_t *)lv_theme_default_font_subtitle_custom_ptr)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Theme title font */
|
||||||
|
#if defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_12)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_12)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_14)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_14)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_16)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_16)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_18)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_18)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_20)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_20)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_22)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_22)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_24)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_24)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_26)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_26)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_28)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_28)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_30)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_30)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_32)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_32)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_34)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_34)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_36)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_36)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_38)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_38)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_40)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_40)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_42)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_42)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_44)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_44)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_46)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_46)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_48)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_48)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_12_SUBPX)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_12_subpx)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_MONTSERRAT_28_COMPRESSED)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_montserrat_28_compressed)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_DEJAVU_16_PERSIAN_HEBREW)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_dejavu_16_persian_hebrew)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_SIMSUN_16_CJK)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_simsun_16_cjk)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_UNSCII_8)
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE (&lv_font_unscii_8)
|
||||||
|
#elif defined(CONFIG_LVGL_THEME_DEFAULT_FONT_TITLE_CUSTOM)
|
||||||
|
extern void *lv_theme_default_font_title_custom_ptr;
|
||||||
|
#define LV_THEME_DEFAULT_FONT_TITLE \
|
||||||
|
((lv_font_t *)lv_theme_default_font_title_custom_ptr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* FONT USAGE */
|
/* FONT USAGE */
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_12
|
||||||
|
#define LV_FONT_MONTSERRAT_12 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_12 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_14
|
||||||
|
#define LV_FONT_MONTSERRAT_14 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_14 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_16
|
||||||
|
#define LV_FONT_MONTSERRAT_16 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_16 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_18
|
||||||
|
#define LV_FONT_MONTSERRAT_18 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_18 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_20
|
||||||
|
#define LV_FONT_MONTSERRAT_20 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_20 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_22
|
||||||
|
#define LV_FONT_MONTSERRAT_22 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_22 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_24
|
||||||
|
#define LV_FONT_MONTSERRAT_24 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_24 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_26
|
||||||
|
#define LV_FONT_MONTSERRAT_26 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_26 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_28
|
||||||
|
#define LV_FONT_MONTSERRAT_28 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_28 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_30
|
||||||
|
#define LV_FONT_MONTSERRAT_30 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_30 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_32
|
||||||
|
#define LV_FONT_MONTSERRAT_32 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_32 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_34
|
||||||
|
#define LV_FONT_MONTSERRAT_34 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_34 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_36
|
||||||
|
#define LV_FONT_MONTSERRAT_36 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_36 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_38
|
||||||
|
#define LV_FONT_MONTSERRAT_38 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_38 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_40
|
||||||
|
#define LV_FONT_MONTSERRAT_40 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_40 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_42
|
||||||
|
#define LV_FONT_MONTSERRAT_42 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_42 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_44
|
||||||
|
#define LV_FONT_MONTSERRAT_44 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_44 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_46
|
||||||
|
#define LV_FONT_MONTSERRAT_46 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_46 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_48
|
||||||
|
#define LV_FONT_MONTSERRAT_48 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_48 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_12_SUBPX
|
||||||
|
#define LV_FONT_MONTSERRAT_12_SUBPX 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_12_SUBPX 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_28_COMPRESSED
|
||||||
|
#define LV_FONT_MONTSERRAT_28_COMPRESSED 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_MONTSERRAT_28_COMPRESSED 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_DEJAVU_16_PERSIAN_HEBREW
|
||||||
|
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_SIMSUN_16_CJK
|
||||||
|
#define LV_FONT_SIMSUN_16_CJK 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_SIMSUN_16_CJK 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_FONT_UNSCII_8
|
||||||
|
#define LV_FONT_UNSCII_8 1
|
||||||
|
#else
|
||||||
|
#define LV_FONT_UNSCII_8 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_FONT_SUBPX_BGR
|
#ifdef CONFIG_LVGL_FONT_SUBPX_BGR
|
||||||
#define LV_FONT_SUBPX_BGR 1
|
#define LV_FONT_SUBPX_BGR 1
|
||||||
#else
|
#else
|
||||||
#define LV_FONT_SUBPX_BGR 0
|
#define LV_FONT_SUBPX_BGR 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_12
|
|
||||||
#define LV_FONT_ROBOTO_12 1
|
|
||||||
#else
|
|
||||||
#define LV_FONT_ROBOTO_12 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_16
|
|
||||||
#define LV_FONT_ROBOTO_16 1
|
|
||||||
#else
|
|
||||||
#define LV_FONT_ROBOTO_16 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_22
|
|
||||||
#define LV_FONT_ROBOTO_22 1
|
|
||||||
#else
|
|
||||||
#define LV_FONT_ROBOTO_22 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_28
|
|
||||||
#define LV_FONT_ROBOTO_28 1
|
|
||||||
#else
|
|
||||||
#define LV_FONT_ROBOTO_28 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_BUILD_IN_FONT_UNSCII_8
|
|
||||||
#define LV_FONT_UNSCII_8 1
|
|
||||||
#else
|
|
||||||
#define LV_FONT_UNSCII_8 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_28_COMPRESSED
|
|
||||||
#define LV_FONT_ROBOTO_28_COMPRESSED 1
|
|
||||||
#else
|
|
||||||
#define LV_FONT_ROBOTO_28_COMPRESSED 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_12_SUBPX
|
|
||||||
#define LV_FONT_ROBOTO_12_SUBPX 1
|
|
||||||
#else
|
|
||||||
#define LV_FONT_ROBOTO_12_SUBPX 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define LV_FONT_CUSTOM_DECLARE
|
#define LV_FONT_CUSTOM_DECLARE
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_12
|
|
||||||
#define LV_FONT_DEFAULT (&lv_font_roboto_12)
|
|
||||||
#elif defined(CONFIG_LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_16)
|
|
||||||
#define LV_FONT_DEFAULT (&lv_font_roboto_16)
|
|
||||||
#elif defined(CONFIG_LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_22)
|
|
||||||
#define LV_FONT_DEFAULT (&lv_font_roboto_22)
|
|
||||||
#elif defined(CONFIG_LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_28)
|
|
||||||
#define LV_FONT_DEFAULT (&lv_font_roboto_28)
|
|
||||||
#elif defined(CONFIG_LVGL_DEFAULT_FONT_BUILD_IN_UNSCII_8)
|
|
||||||
#define LV_FONT_DEFAULT (&lv_font_unscii_8)
|
|
||||||
#elif defined(CONFIG_LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_28_COMPRESSED)
|
|
||||||
#define LV_FONT_DEFAULT (&lv_font_roboto_28_compressed)
|
|
||||||
#elif defined(CONFIG_LVGL_DEFAULT_FONT_BUILD_IN_ROBOTO_12_SUBPX)
|
|
||||||
#define LV_FONT_DEFAULT (&lv_font_roboto_12_subpx)
|
|
||||||
#elif defined(CONFIG_LVGL_DEFAULT_FONT_CUSTOM)
|
|
||||||
extern void *lv_default_font_custom_ptr;
|
|
||||||
#define LV_FONT_DEFAULT ((lv_font_t *) lv_default_font_custom_ptr)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef void *lv_font_user_data_t;
|
typedef void *lv_font_user_data_t;
|
||||||
|
|
||||||
/* Text settings */
|
/* Text settings */
|
||||||
|
@ -431,6 +857,12 @@ typedef void *lv_font_user_data_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_LVGL_TEXT_ARABIC_PERSIAN_CHARS
|
||||||
|
#define LV_USE_ARABIC_PERSIAN_CHARS 1
|
||||||
|
#else
|
||||||
|
#define LV_USE_ARABIC_PERSIAN_CHARS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define LV_SPRINTF_CUSTOM 1
|
#define LV_SPRINTF_CUSTOM 1
|
||||||
|
|
||||||
#if LV_SPRINTF_CUSTOM
|
#if LV_SPRINTF_CUSTOM
|
||||||
|
@ -477,20 +909,10 @@ typedef void *lv_obj_user_data_t;
|
||||||
#define LV_USE_BTN 0
|
#define LV_USE_BTN 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_USE_BTN != 0
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_BUTTON_INK_EFFECT
|
|
||||||
#define LV_BTN_INK_EFFECT 1
|
|
||||||
#else
|
|
||||||
#define LV_BTN_INK_EFFECT 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_BUTTON_MATRIX
|
#ifdef CONFIG_LVGL_OBJ_BUTTON_MATRIX
|
||||||
#define LV_USE_BTNM 1
|
#define LV_USE_BTNMATRIX 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_BTNM 0
|
#define LV_USE_BTNMATRIX 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_CALENDAR
|
#ifdef CONFIG_LVGL_OBJ_CALENDAR
|
||||||
|
@ -506,9 +928,9 @@ typedef void *lv_obj_user_data_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_CHECK_BOX
|
#ifdef CONFIG_LVGL_OBJ_CHECK_BOX
|
||||||
#define LV_USE_CB 1
|
#define LV_USE_CHECKBOX 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_CB 0
|
#define LV_USE_CHECKBOX 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_CHART
|
#ifdef CONFIG_LVGL_OBJ_CHART
|
||||||
|
@ -534,12 +956,12 @@ typedef void *lv_obj_user_data_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_DROP_DOWN_LIST
|
#ifdef CONFIG_LVGL_OBJ_DROP_DOWN_LIST
|
||||||
#define LV_USE_DDLIST 1
|
#define LV_USE_DROPDOWN 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_DDLIST 0
|
#define LV_USE_DROPDOWN 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_USE_DDLIST != 0
|
#if LV_USE_DROPDOWN != 0
|
||||||
#define LV_DDLIST_DEF_ANIM_TIME CONFIG_LVGL_OBJ_DROP_DOWN_LIST_ANIM_TIME
|
#define LV_DDLIST_DEF_ANIM_TIME CONFIG_LVGL_OBJ_DROP_DOWN_LIST_ANIM_TIME
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -570,9 +992,9 @@ typedef void *lv_obj_user_data_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_KEYBOARD
|
#ifdef CONFIG_LVGL_OBJ_KEYBOARD
|
||||||
#define LV_USE_KB 1
|
#define LV_USE_KEYBOARD 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_KB 0
|
#define LV_USE_KEYBOARD 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_LABEL
|
#ifdef CONFIG_LVGL_OBJ_LABEL
|
||||||
|
@ -606,6 +1028,11 @@ typedef void *lv_obj_user_data_t;
|
||||||
#define LV_USE_LED 0
|
#define LV_USE_LED 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if LV_USE_LED != 0
|
||||||
|
#define LV_LED_BRIGHT_MIN CONFIG_LVGL_OBJ_LED_BRIGHT_MIN
|
||||||
|
#define LV_LED_BRIGHT_MAX CONFIG_LVGL_OBJ_LED_BRIGHT_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_LINE
|
#ifdef CONFIG_LVGL_OBJ_LINE
|
||||||
#define LV_USE_LINE 1
|
#define LV_USE_LINE 1
|
||||||
#else
|
#else
|
||||||
|
@ -619,19 +1046,37 @@ typedef void *lv_obj_user_data_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_USE_LIST != 0
|
#if LV_USE_LIST != 0
|
||||||
#define LV_LIST_DEF_ANIM_TIME CONFIG_LVGL_OBJ_LIST_FOCUS_TIME
|
#define LV_LIST_DEF_ANIM_TIME CONFIG_LVGL_OBJ_LIST_DEF_ANIM_TIME
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_LINE_METER
|
#ifdef CONFIG_LVGL_OBJ_LINE_METER
|
||||||
#define LV_USE_LMETER 1
|
#define LV_USE_LINEMETER 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_LMETER 0
|
#define LV_USE_LINEMETER 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if LV_USE_LINEMETER != 0
|
||||||
|
|
||||||
|
#if defined(CONFIG_LVGL_OBJ_LINE_METER_PRECISE_NO_EXTRA)
|
||||||
|
#define LV_LINEMETER_PRECISE 0
|
||||||
|
#elif defined(CONFIG_LVGL_OBJ_LINE_METER_PRECISE_SOME_EXTRA)
|
||||||
|
#define LV_LINEMETER_PRECISE 1
|
||||||
|
#elif defined(CONFIG_LVGL_OBJ_LINE_METER_PRECISE_BEST)
|
||||||
|
#define LV_LINEMETER_PRECISE 2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LVGL_OBJ_OBJMASK
|
||||||
|
#define LV_USE_OBJMASK 1
|
||||||
|
#else
|
||||||
|
#define LV_USE_OBJMASK 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_MSG_BOX
|
#ifdef CONFIG_LVGL_OBJ_MSG_BOX
|
||||||
#define LV_USE_MBOX 1
|
#define LV_USE_MSGBOX 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_MBOX 0
|
#define LV_USE_MSGBOX 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_PAGE
|
#ifdef CONFIG_LVGL_OBJ_PAGE
|
||||||
|
@ -644,21 +1089,25 @@ typedef void *lv_obj_user_data_t;
|
||||||
#define LV_PAGE_DEF_ANIM_TIME CONFIG_LVGL_OBJ_PAGE_DEF_ANIM_TIME
|
#define LV_PAGE_DEF_ANIM_TIME CONFIG_LVGL_OBJ_PAGE_DEF_ANIM_TIME
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_PRELOAD
|
#ifdef CONFIG_LVGL_OBJ_SPINNER
|
||||||
#define LV_USE_PRELOAD 1
|
#define LV_USE_SPINNER 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_PRELOAD 0
|
#define LV_USE_SPINNER 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_USE_PRELOAD != 0
|
#if LV_USE_SPINNER != 0
|
||||||
#define LV_PRELOAD_DEF_ARC_LENGTH CONFIG_LVGL_OBJ_PRELOAD_DEF_ARC_LENGTH
|
|
||||||
#define LV_PRELOAD_DEF_SPIN_TIME CONFIG_LVGL_OBJ_PRELOAD_DEF_SPIN_TIME
|
#define LV_SPINNER_DEF_ARC_LENGTH CONFIG_LVGL_OBJ_SPINNER_DEF_ARC_LENGTH
|
||||||
#ifdef CONFIG_LVGL_OBJ_PRELOAD_DEF_ANIMATION_SPIN_ARC
|
#define LV_SPINNER_DEF_SPIN_TIME CONFIG_LVGL_OBJ_SPINNER_DEF_SPIN_TIME
|
||||||
#define LV_PRELOAD_DEF_ANIM LV_PRELOAD_TYPE_SPINNING_ARC
|
|
||||||
#endif
|
#if defined(CONFIG_LVGL_OBJ_SPINNER_DEF_ANIM_SPINNING_ARC)
|
||||||
#ifdef CONFIG_LVGL_OBJ_PRELOAD_DEF_ANIMATION_FILL
|
#define LV_SPINNER_DEF_ANIM LV_SPINNER_TYPE_SPINNING_ARC
|
||||||
#define LV_PRELOAD_DEF_ANIM LV_PRELOAD_TYPE_FILLSPIN_ARC
|
#elif defined(CONFIG_LVGL_OBJ_SPINNER_DEF_ANIM_FILLSPIN_ARC)
|
||||||
|
#define LV_SPINNER_DEF_ANIM LV_SPINNER_TYPE_FILLSPIN_ARC
|
||||||
|
#elif defined(CONFIG_LVGL_OBJ_SPINNER_DEF_ANIM_CONSTANT_ARC)
|
||||||
|
#define LV_SPINNER_DEF_ANIM LV_SPINNER_TYPE_CONSTANT_ARC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_ROLLER
|
#ifdef CONFIG_LVGL_OBJ_ROLLER
|
||||||
|
@ -685,18 +1134,18 @@ typedef void *lv_obj_user_data_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_SWITCH
|
#ifdef CONFIG_LVGL_OBJ_SWITCH
|
||||||
#define LV_USE_SW 1
|
#define LV_USE_SWITCH 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_SW 0
|
#define LV_USE_SWITCH 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LVGL_OBJ_TEXT_AREA
|
#ifdef CONFIG_LVGL_OBJ_TEXT_AREA
|
||||||
#define LV_USE_TA 1
|
#define LV_USE_TEXTAREA 1
|
||||||
#else
|
#else
|
||||||
#define LV_USE_TA 0
|
#define LV_USE_TEXTAREA 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_USE_TA != 0
|
#if LV_USE_TEXTAREA != 0
|
||||||
#define LV_TA_DEF_CURSOR_BLINK_TIME \
|
#define LV_TA_DEF_CURSOR_BLINK_TIME \
|
||||||
CONFIG_LVGL_OBJ_TEXT_AREA_CURSOR_BLINK_TIME
|
CONFIG_LVGL_OBJ_TEXT_AREA_CURSOR_BLINK_TIME
|
||||||
#define LV_TA_DEF_PWD_SHOW_TIME \
|
#define LV_TA_DEF_PWD_SHOW_TIME \
|
||||||
|
|
|
@ -29,16 +29,20 @@ static lv_disp_buf_t disp_buf;
|
||||||
|
|
||||||
#define NBR_PIXELS_IN_BUFFER (BUFFER_SIZE * 8 / CONFIG_LVGL_BITS_PER_PIXEL)
|
#define NBR_PIXELS_IN_BUFFER (BUFFER_SIZE * 8 / CONFIG_LVGL_BITS_PER_PIXEL)
|
||||||
|
|
||||||
static uint8_t buf0[BUFFER_SIZE];
|
/* NOTE: depending on chosen color depth buffer may be accessed using uint8_t *,
|
||||||
|
* uint16_t * or uint32_t *, therefore buffer needs to be aligned accordingly to
|
||||||
|
* prevent unaligned memory accesses.
|
||||||
|
*/
|
||||||
|
static uint8_t buf0[BUFFER_SIZE] __aligned(4);
|
||||||
#ifdef CONFIG_LVGL_DOUBLE_VDB
|
#ifdef CONFIG_LVGL_DOUBLE_VDB
|
||||||
static uint8_t buf1[BUFFER_SIZE];
|
static uint8_t buf1[BUFFER_SIZE] __aligned(4);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_LVGL_BUFFER_ALLOC_STATIC */
|
#endif /* CONFIG_LVGL_BUFFER_ALLOC_STATIC */
|
||||||
|
|
||||||
#if CONFIG_LVGL_LOG_LEVEL != 0
|
#if CONFIG_LVGL_LOG_LEVEL != 0
|
||||||
static void lvgl_log(lv_log_level_t level, const char *file, uint32_t line,
|
static void lvgl_log(lv_log_level_t level, const char *file, uint32_t line,
|
||||||
const char *dsc)
|
const char *func, const char *dsc)
|
||||||
{
|
{
|
||||||
/* Convert LVGL log level to Zephyr log level
|
/* Convert LVGL log level to Zephyr log level
|
||||||
*
|
*
|
||||||
|
@ -60,8 +64,9 @@ static void lvgl_log(lv_log_level_t level, const char *file, uint32_t line,
|
||||||
|
|
||||||
ARG_UNUSED(file);
|
ARG_UNUSED(file);
|
||||||
ARG_UNUSED(line);
|
ARG_UNUSED(line);
|
||||||
|
ARG_UNUSED(func);
|
||||||
|
|
||||||
Z_LOG(zephyr_level, "%s", dsc);
|
Z_LOG(zephyr_level, "%s", log_strdup(dsc));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -2,3 +2,6 @@ CONFIG_ILI9340=y
|
||||||
CONFIG_ILI9340_LCD_SEEED_TFTV2=y
|
CONFIG_ILI9340_LCD_SEEED_TFTV2=y
|
||||||
|
|
||||||
CONFIG_LVGL=y
|
CONFIG_LVGL=y
|
||||||
|
CONFIG_LVGL_HOR_RES=320
|
||||||
|
CONFIG_LVGL_VER_RES=240
|
||||||
|
CONFIG_LVGL_DPI=100
|
||||||
|
|
|
@ -4,3 +4,6 @@ CONFIG_SDL_DISPLAY_Y_RES=240
|
||||||
|
|
||||||
CONFIG_KSCAN=y
|
CONFIG_KSCAN=y
|
||||||
CONFIG_LVGL_POINTER_KSCAN=y
|
CONFIG_LVGL_POINTER_KSCAN=y
|
||||||
|
CONFIG_LVGL_HOR_RES=320
|
||||||
|
CONFIG_LVGL_VER_RES=240
|
||||||
|
CONFIG_LVGL_DPI=100
|
||||||
|
|
|
@ -4,3 +4,6 @@ CONFIG_SDL_DISPLAY_Y_RES=240
|
||||||
|
|
||||||
CONFIG_KSCAN=y
|
CONFIG_KSCAN=y
|
||||||
CONFIG_LVGL_POINTER_KSCAN=y
|
CONFIG_LVGL_POINTER_KSCAN=y
|
||||||
|
CONFIG_LVGL_HOR_RES=320
|
||||||
|
CONFIG_LVGL_VER_RES=240
|
||||||
|
CONFIG_LVGL_DPI=100
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_HEAP_MEM_POOL_SIZE=16384
|
CONFIG_HEAP_MEM_POOL_SIZE=16384
|
||||||
|
CONFIG_MAIN_STACK_SIZE=2048
|
||||||
|
|
||||||
CONFIG_DISPLAY=y
|
CONFIG_DISPLAY=y
|
||||||
CONFIG_DISPLAY_LOG_LEVEL_ERR=y
|
CONFIG_DISPLAY_LOG_LEVEL_ERR=y
|
||||||
|
@ -9,3 +10,4 @@ CONFIG_LVGL=y
|
||||||
CONFIG_LVGL_OBJ_LABEL=y
|
CONFIG_LVGL_OBJ_LABEL=y
|
||||||
CONFIG_LVGL_OBJ_CONTAINER=y
|
CONFIG_LVGL_OBJ_CONTAINER=y
|
||||||
CONFIG_LVGL_OBJ_BUTTON=y
|
CONFIG_LVGL_OBJ_BUTTON=y
|
||||||
|
CONFIG_LVGL_THEME_MATERIAL=y
|
||||||
|
|
|
@ -20,14 +20,17 @@ CONFIG_LVGL_COLOR_SCREEN_TRANSP=y
|
||||||
CONFIG_LVGL_ANTIALIAS=y
|
CONFIG_LVGL_ANTIALIAS=y
|
||||||
CONFIG_LVGL_ANIMATION=y
|
CONFIG_LVGL_ANIMATION=y
|
||||||
CONFIG_LVGL_SHADOW=y
|
CONFIG_LVGL_SHADOW=y
|
||||||
|
CONFIG_LVGL_BLEND_MODES=y
|
||||||
|
CONFIG_LVGL_OPA_SCALE=y
|
||||||
|
CONFIG_LVGL_IMG_TRANSFORM=y
|
||||||
CONFIG_LVGL_GROUP=y
|
CONFIG_LVGL_GROUP=y
|
||||||
CONFIG_LVGL_GPU=y
|
CONFIG_LVGL_GPU=y
|
||||||
CONFIG_LVGL_IMG_CF_INDEXED=y
|
CONFIG_LVGL_IMG_CF_INDEXED=y
|
||||||
CONFIG_LVGL_IMG_CF_ALPHA=y
|
CONFIG_LVGL_IMG_CF_ALPHA=y
|
||||||
CONFIG_LVGL_IMG_INDEXED_CHROMA=y
|
|
||||||
CONFIG_LVGL_FILESYSTEM=y
|
CONFIG_LVGL_FILESYSTEM=y
|
||||||
CONFIG_LVGL_DOUBLE_VDB=y
|
CONFIG_LVGL_DOUBLE_VDB=y
|
||||||
CONFIG_LVGL_TEXT_USE_BIDI=y
|
CONFIG_LVGL_TEXT_USE_BIDI=y
|
||||||
|
CONFIG_LVGL_TEXT_ARABIC_PERSIAN_CHARS=y
|
||||||
CONFIG_LVGL_OBJ_REALIGN=y
|
CONFIG_LVGL_OBJ_REALIGN=y
|
||||||
CONFIG_LVGL_OBJ_LABEL=y
|
CONFIG_LVGL_OBJ_LABEL=y
|
||||||
CONFIG_LVGL_OBJ_LABEL_TEXT_SEL=y
|
CONFIG_LVGL_OBJ_LABEL_TEXT_SEL=y
|
||||||
|
@ -41,9 +44,7 @@ CONFIG_LVGL_OBJ_WINDOW=y
|
||||||
CONFIG_LVGL_OBJ_TAB_VIEW=y
|
CONFIG_LVGL_OBJ_TAB_VIEW=y
|
||||||
CONFIG_LVGL_OBJ_TILE_VIEW=y
|
CONFIG_LVGL_OBJ_TILE_VIEW=y
|
||||||
CONFIG_LVGL_OBJ_CALENDAR=y
|
CONFIG_LVGL_OBJ_CALENDAR=y
|
||||||
CONFIG_LVGL_OBJ_PRELOAD=y
|
CONFIG_LVGL_OBJ_SPINNER=y
|
||||||
CONFIG_LVGL_OBJ_PRELOAD_DEF_ANIMATION_SPIN_ARC=y
|
|
||||||
CONFIG_LVGL_OBJ_PRELOAD_DEF_ANIMATION_FILL=y
|
|
||||||
CONFIG_LVGL_OBJ_CANVAS=y
|
CONFIG_LVGL_OBJ_CANVAS=y
|
||||||
CONFIG_LVGL_OBJ_BAR=y
|
CONFIG_LVGL_OBJ_BAR=y
|
||||||
CONFIG_LVGL_OBJ_LINE_METER=y
|
CONFIG_LVGL_OBJ_LINE_METER=y
|
||||||
|
@ -55,7 +56,6 @@ CONFIG_LVGL_OBJ_MSG_BOX=y
|
||||||
CONFIG_LVGL_OBJ_TEXT_AREA=y
|
CONFIG_LVGL_OBJ_TEXT_AREA=y
|
||||||
CONFIG_LVGL_OBJ_SPINBOX=y
|
CONFIG_LVGL_OBJ_SPINBOX=y
|
||||||
CONFIG_LVGL_OBJ_BUTTON=y
|
CONFIG_LVGL_OBJ_BUTTON=y
|
||||||
CONFIG_LVGL_OBJ_BUTTON_INK_EFFECT=y
|
|
||||||
CONFIG_LVGL_OBJ_IMG_BUTTON=y
|
CONFIG_LVGL_OBJ_IMG_BUTTON=y
|
||||||
CONFIG_LVGL_OBJ_IMG_BUTTON_TILED=y
|
CONFIG_LVGL_OBJ_IMG_BUTTON_TILED=y
|
||||||
CONFIG_LVGL_OBJ_BUTTON_MATRIX=y
|
CONFIG_LVGL_OBJ_BUTTON_MATRIX=y
|
||||||
|
@ -66,20 +66,30 @@ CONFIG_LVGL_OBJ_DROP_DOWN_LIST=y
|
||||||
CONFIG_LVGL_OBJ_ROLLER=y
|
CONFIG_LVGL_OBJ_ROLLER=y
|
||||||
CONFIG_LVGL_OBJ_SLIDER=y
|
CONFIG_LVGL_OBJ_SLIDER=y
|
||||||
CONFIG_LVGL_OBJ_SWITCH=y
|
CONFIG_LVGL_OBJ_SWITCH=y
|
||||||
CONFIG_LVGL_THEMES=y
|
CONFIG_LVGL_OBJ_LED=y
|
||||||
CONFIG_LVGL_THEME_LIVE_UPDATE=y
|
CONFIG_LVGL_OBJ_OBJMASK=y
|
||||||
CONFIG_LVGL_THEME_DEFAULT=y
|
|
||||||
CONFIG_LVGL_THEME_ALIEN=y
|
|
||||||
CONFIG_LVGL_THEME_NIGHT=y
|
|
||||||
CONFIG_LVGL_THEME_MONO=y
|
|
||||||
CONFIG_LVGL_THEME_MATERIAL=y
|
CONFIG_LVGL_THEME_MATERIAL=y
|
||||||
CONFIG_LVGL_THEME_ZEN=y
|
CONFIG_LVGL_FONT_MONTSERRAT_12=y
|
||||||
CONFIG_LVGL_THEME_NEMO=y
|
CONFIG_LVGL_FONT_MONTSERRAT_14=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_16=y
|
||||||
CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_12=y
|
CONFIG_LVGL_FONT_MONTSERRAT_18=y
|
||||||
CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_16=y
|
CONFIG_LVGL_FONT_MONTSERRAT_20=y
|
||||||
CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_22=y
|
CONFIG_LVGL_FONT_MONTSERRAT_22=y
|
||||||
CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_28=y
|
CONFIG_LVGL_FONT_MONTSERRAT_24=y
|
||||||
CONFIG_LVGL_BUILD_IN_FONT_UNSCII_8=y
|
CONFIG_LVGL_FONT_MONTSERRAT_26=y
|
||||||
CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_28_COMPRESSED=y
|
CONFIG_LVGL_FONT_MONTSERRAT_28=y
|
||||||
CONFIG_LVGL_BUILD_IN_FONT_ROBOTO_12_SUBPX=y
|
CONFIG_LVGL_FONT_MONTSERRAT_30=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_32=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_34=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_36=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_38=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_40=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_42=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_44=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_46=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_48=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_12_SUBPX=y
|
||||||
|
CONFIG_LVGL_FONT_MONTSERRAT_28_COMPRESSED=y
|
||||||
|
CONFIG_LVGL_FONT_DEJAVU_16_PERSIAN_HEBREW=y
|
||||||
|
CONFIG_LVGL_FONT_SIMSUN_16_CJK=y
|
||||||
|
CONFIG_LVGL_FONT_UNSCII_8=y
|
||||||
|
|
2
west.yml
2
west.yml
|
@ -83,7 +83,7 @@ manifest:
|
||||||
revision: 87e9e7f2c5b4e238236fe703db61ba23e48dc2ef
|
revision: 87e9e7f2c5b4e238236fe703db61ba23e48dc2ef
|
||||||
path: modules/hal/libmetal
|
path: modules/hal/libmetal
|
||||||
- name: lvgl
|
- name: lvgl
|
||||||
revision: 74fc2e753a997bd71cefa34dd9c56dcb954b42e2
|
revision: 928b61c7c8ef5f770f10e6fd36d4fea0cf375b5e
|
||||||
path: modules/lib/gui/lvgl
|
path: modules/lib/gui/lvgl
|
||||||
- name: mbedtls
|
- name: mbedtls
|
||||||
path: modules/crypto/mbedtls
|
path: modules/crypto/mbedtls
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue