In v8.0 the header was a detached object which made it difficult to move the header and the calendar
together. Besides there were no way to notifi the header of the calendar's shown date has changed.
BREAKING CHANGE: API of cleander headers, the appearence of the calendars
related to #2573"
* fix(format): remove LV_FORMAT_ATTRIBUTE from the function body
since it's enough to append LV_FORMAT_ATTRIBUTE to function declaration
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(format): add LV_FORMAT_ATTRIBUTE to lv_snprintf and lv_log
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(format): fix the format specifier warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* Fixes for MP support for LVGL 3rd party libraries
Add missing lv_qrcode_class
Remove 'struct JDEC' from public API. This struct is needed intenally on tjpgd.c and lv_sjpg.c, but doesn't need to be exposed in the public API. When exposed, it increases Micropython binding program size and some fields are not supported today (uint8_t* huffbits[2][2]). To overcome this, moved it to a new H file which is not included in public API, only in sjpg C files
Related: https://github.com/lvgl/lv_binding_micropython/issues/180
* lv_qrcode: add lv_class_qrcode
Must define a distinct class for every widget, to allow Micropython bindings convert lv_obj_t into the specific class
* gifdec.c: fix uninitialized
ESP32 reports some potentially uninitialized variables. Initialize them to prevent the errors
* src/extra/libs/sjpg: smaller public header
Only keep lv_split_jpeg_init in public header, since JPEG is used with image decoder
* Remove tjdec.h
* fix(fs): replace all tab to space and other minor style fix
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(extra/fs): rename lv_fs_libs.h to lv_fsdrv.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(extra/fs/stdio): fix the wrong directory path in fs_dir_open
and remove the duplicated or platform specific code
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(extra/fs/posix): implement in fs_dir_read
and fix the wrong directory path in fs_dir_open
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(extra/fs/posix): return file handle directly to avoid malloc
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* test(txt): Add test for identifying empty text when trying to get next line
* test(txt): Rename next line empty string handling test
* test(txt): Add tests for _lv_txt_is_cmd
* test(txt): Add initial tests for _lv_txt_ins
* fix(txt): Check for NULL before using strlen
Passing NULL to strlen is not defined, so we should avoid it
* txt: Update docs
Remove docs from source file and add comment about pointers to NULL terminated arrays where necessary
* txt: Misc update in encoded_size
* test(txt): first tests for _lv_txt_cut
* tests: Remove -Wmissing-prototype flag from compilation
This will allow us to have cleaner test cases files.
* test(txt): Remove test (funtion) prototypes as they're no longer necessary
* Update src/misc/lv_txt.h
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
* Update src/misc/lv_txt.h
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
* Revert "tests: Remove -Wmissing-prototype flag from compilation"
This reverts commit 8b3217de8d9210eb2e6da5e94c0735beb2735be7.
* test(txt): Use pragma to disable missing-prototype warning
* test: use extended set of compile options for test cases
* Revert "test(txt): Use pragma to disable missing-prototype warning"
This reverts commit 64909e30ed124ca1e8ca390ca0639479c3e34f44.
* test(txt): Add assert to test_txt_cut_len_longer_than_string test
* test(txt): Add test for _lv_txt_encoded_next on valid ascii input
* test(txt): Add tests for _lv_txt_encoded_next with 2 byte long inputs
* test(txt): Add tests for _lv_txt_encoded_next with 3 byte long inputs
* test(txt): Add tests for _lv_txt_encoded_next with 4 byte long inputs
* cleanup(txt): Add helper macros to identify ASCII and UTF8 codes
* cleanup(txt): Add missing LV_ prefix to helper macros
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
* fix(conf): correct LV_USE_EXTERNAL_RENDERER and LV_USE_GPU_SDL related setting
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(Kconfig): typo error in the font and theme related setting
and correct the default value and sequence
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(Kconfig): Add the missing misc config
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(Kconfig): sync widget and theme in Kconfig with lv_conf_template.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(Kconfig): add the option for 3rd party library and examples
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(log): change fwrite to puts since not all platform support fwrite
This reverts commit 539388a66f5aca4e46869fca8da41634e8c5366e.
* fix(log): don't call printf and custom_print_cb at the same time
* fix(log): remove 768B temp buffer if LV_LOG_PRINTF == 1
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* feat(printf): support %pV format specifier
to support the recursive print:
https://www.kernel.org/doc/html/latest/core-api/printk-formats.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(log): save 256B temp buffer if LV_LOG_PRINTF == 0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>