refactor(display): Updates for LVGL v8.x changes.

* LV_ prefix from new LVGL official Kconfig now used.
* API changes for themes, container object removal, etc.
* Add our own Kconfig and code for theme default small font.
* Remove some hardcoded sizes.
This commit is contained in:
Peter Johanson
2023-01-17 23:33:42 -05:00
committed by Pete Johanson
parent 168b32b828
commit 69a4c3200d
44 changed files with 463 additions and 246 deletions

View File

@@ -28,17 +28,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -31,17 +31,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -29,17 +29,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -21,17 +21,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -29,17 +29,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -32,17 +32,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -29,17 +29,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -31,17 +31,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -31,17 +31,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -21,17 +21,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -25,17 +25,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -4,7 +4,7 @@
if SHIELD_NICE_VIEW
config ZMK_DISPLAY
select LVGL_FONT_MONTSERRAT_26
select LV_FONT_MONTSERRAT_26
if ZMK_DISPLAY
@@ -17,11 +17,11 @@ config LS0XX
config ZMK_WIDGET_WPM_STATUS
default y if !ZMK_SPLIT || ZMK_SPLIT_ROLE_CENTRAL
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # ZMK_DISPLAY

View File

@@ -1,5 +1,5 @@
# Enable nice!view
CONFIG_ZMK_DISPLAY=y
CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_26=y
CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_26=y
CONFIG_ZMK_LV_FONT_DEFAULT_SMALL_MONTSERRAT_26=y
CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26=y
CONFIG_ZMK_DISPLAY_BLANK_ON_IDLE=n

View File

@@ -31,17 +31,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -31,17 +31,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -37,17 +37,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -37,17 +37,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -37,17 +37,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -22,17 +22,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -29,17 +29,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL

View File

@@ -31,17 +31,17 @@ endif # ZMK_DISPLAY
if LVGL
config LVGL_VDB_SIZE
config LV_Z_VDB_SIZE
default 64
config LVGL_DPI
config LV_Z_DPI
default 148
config LVGL_BITS_PER_PIXEL
config LV_Z_BITS_PER_PIXEL
default 1
choice LVGL_COLOR_DEPTH
default LVGL_COLOR_DEPTH_1
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_1
endchoice
endif # LVGL