Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions lib/gui/lvgl/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2018-2019 Jan Van Winkel <[email protected]>
# Copyright (c) 2020 Teslabs Engineering S.L.
# Copyright (c) 2021 Krivorot Oleg <[email protected]>
# SPDX-License-Identifier: Apache-2.0

menuconfig LVGL
Expand All @@ -21,6 +22,22 @@ config APP_LINK_WITH_LVGL
disabled if the include paths for LVGL are causing aliasing
issues for 'app'.

config LVGL_USE_USER_CONFIG
bool "Use user config file"
help
Include a custom preferences file (lv_conf_user.h by default; see
LVGL_USER_CONFIG_FILE). In the file, you can set the preferences
that cannot be set using Kconfig (e.g. custom fonts).

config LVGL_USER_CONFIG_FILE
string "User config file name"
default "lv_conf_user.h"
depends on LVGL_USE_USER_CONFIG
help
This file should be located in the root folder of the project,
or in any folder, the path to which is registered in root
CMakeLists.txt using the macro zephyr_include_directories()

rsource "Kconfig.graphical"
rsource "Kconfig.memory"
rsource "Kconfig.input"
Expand Down
5 changes: 5 additions & 0 deletions lib/gui/lvgl/lv_conf.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2018-2020 Jan Van Winkel <[email protected]>
* Copyright (c) 2020 Teslabs Engineering S.L.
* Copyright (c) 2021 Krivorot Oleg <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -871,4 +872,8 @@ typedef void *lv_obj_user_data_t;

#define LV_USE_WIN IS_ENABLED(CONFIG_LVGL_USE_WIN)

#ifdef CONFIG_LVGL_USE_USER_CONFIG
#include CONFIG_LVGL_USER_CONFIG_FILE
#endif

#endif /* ZEPHYR_LIB_GUI_LVGL_LV_CONF_H_ */