diff --git a/Kconfig b/Kconfig index b7bef41ea7..b3c5834f76 100644 --- a/Kconfig +++ b/Kconfig @@ -901,6 +901,10 @@ menu "LVGL configuration" bool "Store extra some info in labels (12 bytes) to speed up drawing of very long texts." depends on LV_USE_LABEL default y + config LV_LABEL_WAIT_CHAR_COUNT + int "The count of wait chart." + depends on LV_USE_LABEL + default 3 config LV_USE_LINE bool "Line." default y if !LV_CONF_MINIMAL diff --git a/lv_conf_template.h b/lv_conf_template.h index c8dd84802e..00ab1f16f0 100644 --- a/lv_conf_template.h +++ b/lv_conf_template.h @@ -477,6 +477,7 @@ #if LV_USE_LABEL #define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/ #define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/ + #define LV_LABEL_WAIT_CHAR_COUNT 3 /*The count of wait chart*/ #endif #define LV_USE_LED 1 diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index fa74c01339..c9238c4377 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -1511,6 +1511,13 @@ #define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/ #endif #endif + #ifndef LV_LABEL_WAIT_CHAR_COUNT + #ifdef CONFIG_LV_LABEL_WAIT_CHAR_COUNT + #define LV_LABEL_WAIT_CHAR_COUNT CONFIG_LV_LABEL_WAIT_CHAR_COUNT + #else + #define LV_LABEL_WAIT_CHAR_COUNT 3 /*The count of wait chart*/ + #endif + #endif #endif #ifndef LV_USE_LED diff --git a/src/widgets/label/lv_label.h b/src/widgets/label/lv_label.h index 0a0677129e..ea0938cad0 100644 --- a/src/widgets/label/lv_label.h +++ b/src/widgets/label/lv_label.h @@ -27,7 +27,6 @@ extern "C" { /********************* * DEFINES *********************/ -#define LV_LABEL_WAIT_CHAR_COUNT 3 #define LV_LABEL_DOT_NUM 3 #define LV_LABEL_POS_LAST 0xFFFF #define LV_LABEL_TEXT_SELECTION_OFF LV_DRAW_LABEL_NO_TXT_SEL