summaryrefslogtreecommitdiff
path: root/app/src/display/Kconfig
diff options
context:
space:
mode:
authorPeter Johanson <peter@peterjohanson.com>2021-04-01 21:22:48 -0400
committerPete Johanson <peter@peterjohanson.com>2021-09-25 19:43:20 -0400
commit3e6a3758edf1960c64d1d8b0424ac84283166f52 (patch)
tree64e0214ca9845c8c9d70c51ec464cd9e495e63e0 /app/src/display/Kconfig
parent2128b2b55f85a6190194d83696f7419eb53c6642 (diff)
refactor(display): Saner font selection/defaults.
* Only select fonts for the default built in status screen * Leverage theme default fonts, instead of hardcoding theme details in each component.
Diffstat (limited to 'app/src/display/Kconfig')
-rw-r--r--app/src/display/Kconfig21
1 files changed, 20 insertions, 1 deletions
diff --git a/app/src/display/Kconfig b/app/src/display/Kconfig
index 9c70911..8023025 100644
--- a/app/src/display/Kconfig
+++ b/app/src/display/Kconfig
@@ -18,7 +18,6 @@ endchoice
choice ZMK_DISPLAY_STATUS_SCREEN
prompt "Default status screen for displays"
- default ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN
config ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN
bool "Built in status screen"
@@ -52,6 +51,26 @@ config ZMK_DISPLAY_DEDICATED_THREAD_PRIORITY
endif # ZMK_DISPLAY_WORK_QUEUE_DEDICATED
+if ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN
+
+config LVGL_FONT_MONTSERRAT_16
+ default y
+
+choice LVGL_THEME_DEFAULT_FONT_NORMAL
+ default LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_16
+
+endchoice
+
+config LVGL_FONT_MONTSERRAT_12
+ default y
+
+choice LVGL_THEME_DEFAULT_FONT_SMALL
+ default LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_12
+
+endchoice
+
+endif # ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN
+
rsource "widgets/Kconfig"
endif