1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

7998 Commits

Author SHA1 Message Date
Jason Pritchard
c49430bfd4
fix(misc): Remove duplicate declaration of _lv_log_add. (#3103)
Commit ba38a4b appears to have accidentally added a duplicate declaration of
_lv_log_add. With -Wredundant-decls, this causes warnings to spam the terminal.

    warning: redundant redeclaration of ‘_lv_log_add’ [-Wredundant-decls]
2022-02-18 09:00:27 +01:00
Ken Carpenter
349a51cb03
fix(gridnav): get key code from the actual event (#3101)
This enables queuing up a key while animation is occurring and then sending it to the gridnav once the animation is complete.
Without this, if you call `lv_event_send()` to send a key to the gridnav later, then `lv_indev_get_act()` returns `NULL` since it's no longer actively processing the key handler, and nothing happens from the key.
2022-02-17 22:23:14 +01:00
Gabor Kiss-Vamosi
6c00552629 fix: fix warning 2022-02-17 18:34:26 +01:00
Gabor Kiss-Vamosi
b1e2c06658 fix(gif): fix rare issue when drawing the gif's background 2022-02-17 18:16:48 +01:00
Carlos Diaz
ab727d3181
test(textarea): add unit test (#3074)
* test(textarea): Password mode

* test(textarea): label style with one line enabled

* test(textarea): Cursor click pos

* chore(textarea): Move auto hide to helper

* test(textarea): Placeholder text

* test(textarea): Default properties values

* test(textarea): Remove assert from one line test

* tests(textarea): Remove unused variables

* feat/textarea: Add and use is_valid_but_non_printable_char

* chore/textarea: General cleanup

* test(textarea): Accepted chars

* Update src/widgets/lv_textarea.c

* test(textarea): Assert text is empty after widget creation

* test(textarea): Update test for label style with one line enabled

* test(textarea): Add default text helper and use it

* test(textarea): Ignore line break chars in one line mode

* textarea: Check for line break chars sooner when adding char

* textarea: Start refactor of insert_handler

* textarea: Add comments to insert_handler

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-02-17 18:12:59 +01:00
Gabor Kiss-Vamosi
b6d2daa493 feat(gridnav): add lv_gridnav_set_focused
fixes #3069
2022-02-17 18:11:30 +01:00
Carlos Diaz
cfd6d43672
test(table): add unit tests (#3040)
* test(table): Happy path test for set_cell_value

* table: Abstract char configuration on set_cell_value

Abstract bytes to allocate calculation and txt copying

* table: Add missing &

* table: Update helper names

* test(table): Add test for column increasing when setting a formatted cell value

* table: Increase table columns when needed

* test(table): Fix test_table_should_grow_columns_automatically_when_setting_formatted_cell_value

* table: Fix code formatting

* test(table): Add test for cell ctrl

* table: Refactor draw_main low hanging fruits

* lv_table: Initial refactor of get_row_height

Mostly early breaks on loops and reducing variable scope where possible

* lv_table: Initial refactor of refr_size

Adding const wherever is possible

* lv_table: Further cleanup get_row_height

* lv_table: Cleanup loop in draw_main

* lv_table: Fix -Werror=shadow compilation error

* test(table): Tests for cell ctrl clearance

* lv_table: Rename index to idx

* lv_table: Use helper to know if cell is empty

* test(table): Comment assumptions to column grow test

* test(table): Row height with multi line cell value

* test(table): Wrap on long texts and increase row height

* add rendering test

* fix warnings

* fix out of bounds indexig

* fix rendering test

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-02-17 13:52:46 +01:00
guoweilkd
060b37e8fb
fix(draw_rect): delete __STDC_VERSION__ to ensure C++ compatibility (#3099) 2022-02-17 12:31:16 +01:00
Gabor Kiss-Vamosi
fe4caaff0e chore: remove debug settings 2022-02-16 20:31:17 +01:00
Gabor Kiss-Vamosi
c742f2c888 fix(obj): fix LV_OBJ_FLAG_OVERFLOW_VISIBLE
fixes: #3098
2022-02-16 19:58:59 +01:00
Gabriel Wang
a82dc49c26
pre-release for LVGL cmsis-pack v1.0.1 (#3091)
* pre-release for LVGL cmsis-pack v1.0.1

* update lv_conf_cmsis.h
2022-02-16 19:39:16 +01:00
Gabor Kiss-Vamosi
4a766c516d example(slider): make lv_example_slider_3 work with dark theme too
fixes: #3094
2022-02-16 14:04:05 +01:00
GoT
0cbb0087f7
docs(scroll) add information about scroll coordinates (#3088) 2022-02-16 07:49:12 -05:00
Gabor Kiss-Vamosi
4246615f48 chore(tests): fix image compare tests 2022-02-16 09:45:39 +01:00
Gabor Kiss-Vamosi
e4824f5f6b doc(disp): describe "Decoupling the display refresh timer"
Introduced in 85cc84ad94
2022-02-16 09:27:45 +01:00
Gabor Kiss-Vamosi
7cf5709b06 fix(font): use 0 width for non printable characters 2022-02-16 09:10:48 +01:00
GoT
cbcf194bc4
docs(msgbox) fix typo (#3095) 2022-02-15 16:45:02 -05:00
Gabriel Wang
305ad00893
feat(benchmark): add an API to run specific scene (#3089) 2022-02-13 14:02:45 -05:00
embeddedt
9771050b99
chore(format) add formatting for examples & demos, merge test config 2022-02-13 13:59:17 -05:00
Gabriel Wang
ba38a4bb76
feat(log): improve lv_log and add log the result from lv_demo_benchmark (#3084)
* feat(log): improve log

* Update log.md

* Update log.md

* fix: fix formatting issue

* fix: fix formatting again...

* fix: remove blanks
2022-02-12 20:12:32 +01:00
Gabor Kiss-Vamosi
48d87e1ed2 test(img): fix image error diff handler 2022-02-11 16:59:24 +01:00
guoweilkd
751b1b67b8
fix(font):draw placeholder if get_glyph_dsc() returns false (#3000) 2022-02-11 15:26:57 +01:00
embeddedt
c6b34bc85b
fix(conf): work around GCC bug (#3082)
Fixes #3078
2022-02-11 15:25:44 +01:00
Mariotaku
e7736f2c32
feat(fragment): add fragment manager (a UI Controller concept) (#2940)
* adding lv_obj_controller

* adding examples for lv_obj_controller

* added some docs

* formatted code

* updated controller docs

* updated controller docs

* updated sample controller field

* changed lv_controller_manager_parent to lv_controller_manager_get_parent

* updated unmanaged controller creation/deletion

* renamed lv_controller_manager_t

* rename: controller -> fragment

* formatted code

* Update examples/others/fragment/lv_example_fragment.h

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update src/extra/others/fragment/lv_fragment.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update src/extra/others/fragment/lv_fragment.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update src/extra/others/fragment/lv_fragment.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* code cleanup

* fragment creation rework

* (wip) fragment manager

* (wip) fragment manager

* refactoring fragment

* lifecycle fixes

* updated fragment event callback

* exposed states of fragment

* added some docs

* updated lv_fragment_managed_states_t name

* updated docs

* updated docs

* updated lv_fragment_manager_dispatch_event docs

* removed msgbox fragment

* updated fragment docs

* updated fragment docs

* updated docs

* updating examples

* fixed example

* reformatted code

* fixed obj_created set timing

* simplified fragment

* improved fragment view del assertion

* fixed a typo

* fixed event_cb check in lv_obj_remove_event_cb_with_user_data

* fixing fragment obj assertion

* regenerated config

* fixed fragment examples

* fixed fragment examples

* added missing examples

* updated docs

* fragment api cleanup

* rename fragment struct names

* added missing param doc

* enabled test for 32bit build

* feat(porting): add a macro lv_run_timer_handler_in_period to simplify porting (#3063)

* feat(porting): add a macro lv_run_timer_handler_in_period to simplify porting

* feat: update helper function and doc

* doc(porting): update function names

* revise to the original os.md

* fix: fix typo

* fix: mitigate warnings

* chore: fix code formatting

* fix(fsdrv): replacing sprintf with lv_snprintf for safety (#3079)

* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(conf) mismatched macro judgment

* feat(fsdrv) replacing sprintf with lv_snprintf for safety

* feat(fsdrv) update stdio and win32

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>

* fix warnings

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Co-authored-by: Gabriel Wang <embedded_zhuoran@Hotmail.com>
Co-authored-by: _VIFEXTech <1290176185@qq.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-02-11 12:43:08 +01:00
_VIFEXTech
9f90d82e91
fix(fsdrv): replacing sprintf with lv_snprintf for safety (#3079)
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(conf) mismatched macro judgment

* feat(fsdrv) replacing sprintf with lv_snprintf for safety

* feat(fsdrv) update stdio and win32

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-02-08 15:22:28 +01:00
Gabor Kiss-Vamosi
2dc804f2b2 chore: fix code formatting 2022-02-07 21:18:00 +01:00
Gabriel Wang
796f0c0b4e
feat(porting): add a macro lv_run_timer_handler_in_period to simplify porting (#3063)
* feat(porting): add a macro lv_run_timer_handler_in_period to simplify porting

* feat: update helper function and doc

* doc(porting): update function names

* revise to the original os.md

* fix: fix typo

* fix: mitigate warnings
2022-02-07 21:10:12 +01:00
Gabor Kiss-Vamosi
9e1b789fb3 chore(demo): describe why the memory leak is no zero 2022-02-07 20:38:05 +01:00
Gabor Kiss-Vamosi
9a1e385b2b docs(images): fix notes about breaking change inf v8.2
Indexed images are not chroma keyed. Use the alpha chaneel instead.
Realted to: https://forum.lvgl.io/t/8-2-0-image-drawing-renders-actual-color-defined-for-transparency-in-lv-img-cf-indexed-8bit-images-8-1-0-and-prior-did-not/8133
2022-02-07 19:15:01 +01:00
GoT
78966f5cc4
docs(scroll): use LV_DIR_VER instead of LV_DIR_TOP (#3066)
Bad usage of LV_DIR_TOP
2022-02-07 17:33:54 +01:00
Carlos Diaz
2c7760c687
chore(test): format test cases (#3071) 2022-02-03 09:59:55 +01:00
Gabriel Wang
e400a87df9
fix(cmsis-pack): add PIDX for cmsis-pack (#3064) 2022-02-01 09:01:50 +01:00
embeddedt
9fcefe5a49
ci use GCC problem matcher on ARM tests as well 2022-01-31 09:28:02 -05:00
Gabor Kiss-Vamosi
23c7b2dbf2 change version numbers to v8.3.0-dev 2022-01-31 13:35:13 +01:00
Gabor Kiss-Vamosi
0b5a1d4b23 release v8.2 v8.2.0 2022-01-31 13:32:05 +01:00
Gabriel Wang
d851fe0528
feat(cmsis-pack): prepare for lvgl v8.2.0 release (#3062) 2022-01-31 13:15:27 +01:00
Gabor Kiss-Vamosi
4bd1e7e9f7 arch(env): move the zephyr folder into the env_support folder 2022-01-29 19:48:39 +01:00
Amir Gonnen
c7a414bfc6
fix(micropython) update examples for new API (#3059)
Related: https://github.com/lvgl/lv_binding_micropython/issues/202
2022-01-29 12:39:11 -05:00
Gabor Kiss-Vamosi
f6a61df3ae chore: update lv_conf_internal.h 2022-01-29 14:35:05 +01:00
Gabriel Wang
7f4cde9388
fix: increase default value of LV_MEM_SIZE for lv_demo_widgets #3057 (#3058)
* fix: increase default value of LV_MEM_SIZE for demo:widgets #3057

* Update demos/widgets/lv_demo_widgets.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-29 14:34:08 +01:00
embeddedt
b34fe9ed8b
ci(micropython) use ESP-IDF 4.4 2022-01-29 08:25:34 -05:00
Gabriel Wang
4aa6829bdc
fix(cmsis-pack): fix issue #3032 (#3056)
* fix(cmsis-pack): fix issue #3032

- catchup with the latest master branch
- fixed an cmsis-pack issue
- update lv_conf_cmsis.h with the latest lv_conf_template.h

* fix(cmsis-pack): update default value of LV_MEM_SIZE for better user experience

- Improve user experience when people use cmsis-pack to try demo: widgets
2022-01-29 14:22:51 +01:00
Gabor Kiss-Vamosi
74091c42f7 chore: fix typos in FATFS config
fixes https://github.com/lvgl/lvgl/pull/2979#discussion_r794612134
2022-01-29 13:47:14 +01:00
Gabriel Wang
f6ebb9a5a7
fix(porting): add missing function prototypes (#3054) 2022-01-28 11:58:41 -05:00
Gabor Kiss-Vamosi
244ca091c4
chore(docs): update faq 2022-01-28 15:27:16 +01:00
Amir Gonnen
a4c235a93e
fix(kconfig): add missing default values (#3050)
Related: https://github.com/lvgl/lv_micropython/runs/4958046580?check_suite_focus=true
2022-01-28 11:33:17 +01:00
Gabor Kiss-Vamosi
285e6b39f9
docs(fs): update fs interface description to the latest API 2022-01-27 11:20:56 +01:00
Mariotaku
70c2b57abe
fix(canvas): force canvas to use sw draw (#3045)
* force canvas to use sw draw

* added userdata to lv_draw_sdl_drv_param_t

* fixing build test

* Update src/draw/sdl/lv_draw_sdl.h

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-25 13:24:34 +01:00
Man, Jianting (Meco)
8a2d72c35b
fix(rt-thread): use ARCH_CPU_BIG_ENDIAN to replace RT_USING_BIG_ENDIAN (#3044) 2022-01-25 12:37:51 +01:00
Carlos Diaz
ded126a478
chore(ci): update check_style.yml (#3047)
Update failure message
2022-01-25 11:01:56 +01:00