413820fc7f
* Bump the LVGL mem pool size needed for custom screen. * Fixes for LVGL drawing/label usage.
56 lines
1.1 KiB
Plaintext
56 lines
1.1 KiB
Plaintext
# Copyright (c) 2023 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
if SHIELD_NICE_VIEW
|
|
|
|
config LV_Z_VDB_SIZE
|
|
default 100
|
|
|
|
config LV_DPI_DEF
|
|
default 161
|
|
|
|
config LV_Z_BITS_PER_PIXEL
|
|
default 1
|
|
|
|
choice LV_COLOR_DEPTH
|
|
default LV_COLOR_DEPTH_1
|
|
endchoice
|
|
|
|
choice ZMK_DISPLAY_WORK_QUEUE
|
|
default ZMK_DISPLAY_WORK_QUEUE_DEDICATED
|
|
endchoice
|
|
|
|
choice ZMK_DISPLAY_STATUS_SCREEN
|
|
default ZMK_DISPLAY_STATUS_SCREEN_CUSTOM
|
|
endchoice
|
|
|
|
config LV_Z_MEM_POOL_SIZE
|
|
default 4096 if ZMK_DISPLAY_STATUS_SCREEN_CUSTOM
|
|
|
|
config ZMK_DISPLAY_STATUS_SCREEN_CUSTOM
|
|
imply NICE_VIEW_WIDGET_STATUS
|
|
|
|
config NICE_VIEW_WIDGET_STATUS
|
|
bool "Custom nice!view status widget"
|
|
select LV_FONT_MONTSERRAT_16
|
|
select LV_USE_IMG
|
|
select LV_USE_CANVAS
|
|
|
|
config NICE_VIEW_WIDGET_INVERTED
|
|
bool "Invert custom status widget colors"
|
|
|
|
if !ZMK_SPLIT || ZMK_SPLIT_ROLE_CENTRAL
|
|
|
|
config NICE_VIEW_WIDGET_STATUS
|
|
select LV_FONT_MONTSERRAT_18
|
|
select LV_FONT_MONTSERRAT_14
|
|
select LV_FONT_UNSCII_8
|
|
select ZMK_WPM
|
|
|
|
endif # !ZMK_SPLIT || ZMK_SPLIT_ROLE_CENTRAL
|
|
|
|
config ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN
|
|
select LV_FONT_MONTSERRAT_26
|
|
|
|
endif # SHIELD_NICE_VIEW
|