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

7625 Commits

Author SHA1 Message Date
Amir Gonnen
084cc07d53
fix(keyboard): add missing functions (#2835)
Related: https://forum.lvgl.io/t/keyobard-get-active-btn-text/5683/9?u=amirgon
2021-11-26 12:28:11 +01:00
_VIFEXTech
9233918b93
feat(Kconfig): add monitor position configuration (#2834)
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(Kconfig) add monitor position configuration

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-11-26 12:20:43 +01:00
Uli Raich
cd197a8e49
feat(examples) add micropython versions of the external library examples (#2762)
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
2021-11-24 21:18:15 -05:00
guoweilkd
81f7d50c45
feat(freetype): support bold and italic (#2824)
* feat(freetype):support bold and italic

* fix(format): replace code-format.sh with code-format.py

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-24 20:19:09 +01:00
Mariotaku
6791522588
fix(checkbox) remove unnecessary events (#2829)
* Fixed LV_EVENT_VALUE_CHANGED event in lv_checkbox

* Update CHANGELOG.md

* Removed LV_EVENT_PRESSED/RELEASED related event

* Update docs/CHANGELOG.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-23 16:36:44 +01:00
Gabor Kiss-Vamosi
ac7f31c716
Update pull_request_template.md 2021-11-23 14:34:27 +01:00
Gabor Kiss-Vamosi
918b3defd7 test(dropdown) fix to pass again 2021-11-23 14:13:24 +01:00
Gabor Kiss-Vamosi
81d8be13d6 fix(draw) simplify how outline_pad is compnesated
Previously it was impossible to set outline_pad=0.
Now it's simply reduced by 1 during drawing
to avoid color bleeding with outline_pad=0.
2021-11-23 13:45:46 +01:00
Gabor Kiss-Vamosi
9d3134b66e feat(dropdown): keep the list on open/close for simpler styling
So far it was deleted on close, now it's just hidden/unhidden
2021-11-23 13:45:46 +01:00
guoweilkd
8b709936b5
fix(qrcode): replace memcpy() with lv_memcpy() and delete useless macros (#2827)
* fix(qrcode):Replace memcpy() with lv_memcpy()

* chore(qrcode):Delete useless macros
2021-11-23 10:51:40 +01:00
ckielstra
b911b72f4b
docs: spelling fixes (#2828) 2021-11-23 10:50:18 +01:00
embeddedt
a2b555e096
ci add workflow to check code formatting 2021-11-22 08:52:18 -05:00
Xiang Xiao
3a0069adf8
chore(format): run code-format.sh (#2822)
* fix(format): run code-format.sh

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(astyle): add the 3rd party source file to exclude list

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 13:32:48 +01:00
Gabor Kiss-Vamosi
77287ca7d9
chore(docs) try to fix table rendering error 2021-11-22 13:31:03 +01:00
Gabor Kiss-Vamosi
084439e947
docs(roadmap) udpate 2021-11-22 12:04:22 +01:00
Xiang Xiao
004b7ddd65
fix(font) improve builtin font source files generation process (#2825)
* fix(built_in_font_gen.py): change the output format from bin to lvgl

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(generate_all.py): improve the builtin font generation

1.run astyle on the generated source files
2.copy these files to src/font folder

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(font): regenerate all builtin font files

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 11:54:24 +01:00
Gabor Kiss-Vamosi
1cd851f8c0
docs(contributing) update commit message format 2021-11-22 11:11:46 +01:00
Xiang Xiao
f1584e122f
docs(style) minor style fix (#2818)
* fix(misc): avoid ;; after LV_ASSERT_STYLE/LV_ASSERT_OBJ

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(style_api_gen.py): remove the unused docs_prop_cnt variable

and remove the trailing space

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(style_api_gen.py): ensure the generated code follow the coding style

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(style_api_gen.py): ensure props has the same order of lv_style_prop_t

and correct the style flags

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 10:53:16 +01:00
Vincent Hamp
a8f30120ce
fix(CMake) split CMakeLists.txt, add options, includes and dependencies (#2753)
* fix(CMake) split CMakeLists.txt, add options, includes and dependencies

* fix(CMake) do not use 'project' keyword with ESP_PLATFORM

* fix(CMake) prefix includes with CMAKE_CURRENT_LIST_DIR

* Don't depend on CMAKE_CURRENT_SOURCE_DIR

* fix(CMake) rename baremetal.cmake to custom.cmake

* fix(CMake) add CMake documentation
2021-11-22 10:51:51 +01:00
Mariotaku
3ea4d66411
feat(font) add fallback support and mem. font load option to FreeType (#2796)
* adding font type check

* using theme specified font
supports freetype drawing

* adding font type check

* using theme specified font
supports freetype drawing

* freetype fallback font support

* improved fallback font

* updated fallback font modifier

* docs(events) LV_EVENT_APPLY was removed (#2791)

* reverted to default font logic

* removed unused function

* improved font fallback

* font fallback for default lv_draw_letter as well

* added back masked drawing support

* fallback support for freetype uncached

* updated description

* fixed constructor initialization for ISO C

* reverted unneeded changes

* using loop instead of recursion to resolve glyph info

* simplified glyph dec resolving

* removed unused enum value

* improved lv_font_fmt_ft_dsc_t field naming

* supports pointer as freetype font source

* Updated docs for font fallback

Co-authored-by: Vincent Hamp <higaski@users.noreply.github.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-22 10:43:58 +01:00
Miguel Magno
57cde348fa
fix(obj): make lv_obj_fade_in/out use the current opa as start value (#2819) 2021-11-22 10:03:38 +01:00
guoweilkd
477abcf27a
fix(qrcode):minimize margins as much as possible (#2804) 2021-11-22 09:53:21 +01:00
Xiang Xiao
3035d27d4a
chore(conf): ensure the template and generated file conform the coding style (#2823)
* fix(conf): ensure the template and generated file conform the coding style

and remove lv_conf_internal.h from the excluding list of code-format.cfg

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(conf): regenerate lv_conf_internal.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 09:52:26 +01:00
Xiang Xiao
2d683fab96
fix(scripts): switch all scripts to python3 (#2820)
* fix(scripts): switch all to python3

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(changelog-template.hbs): remove the duplicated message fix

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 09:48:38 +01:00
Xiang Xiao
425455d20f
chore(font) code clean up (#2821)
* fix(lv_symbol_def.h): LV_SYMBOL_xxx by the encode order

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(lv_symbol_def.h): change the hex number to upper case

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(font): Keep the LV_FONT_DECLARE order same as LV_FONT_xxxx

and correct the comment and format

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 09:47:22 +01:00
xaowang96
bfc428ecd1
fix(event): event_send_core crash in special case. (#2807)
Add or delete event callback in lv_obj_event_base, the
address of event_dsc will change, causing crash.

Change-Id: I3085a077826e4c132f8f5088d31cad1d0ffd3b9f
2021-11-19 15:32:42 +01:00
_VIFEXTech
9ced5a76ec
fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration (#2813)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-11-19 17:40:53 +08:00
Gabor Kiss-Vamosi
4bf49a82a3 docs(format) let wrap 2021-11-19 10:32:45 +01:00
_VIFEXTech
a97ac7ec8e
feat(lib) add ffmpeg video and image decoder (#2805)
* add ffmpeg decoder to extra/libs

* fix(Kconfig) add ffmpeg configuration

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* feat(example) add ffmpeg decoder example

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* update lv_conf_template.h

* feat(example) add picture and video to ffmpeg example

* docs(libs) update FFMpeg introduction

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* fix(ffmpeg) replace with new videos and examples

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* fix(ffmpeg) remove the include of lv_img_cache.h

* fix(ffmpeg) add LV_ASSERT_OBJ

* Update examples/libs/ffmpeg/lv_example_ffmpeg_2.c

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-19 08:49:39 +01:00
patricklaf
bdc6331ba6
docs(porting/display) fix formatting (#2812) 2021-11-18 10:45:43 -05:00
Gabor Kiss-Vamosi
cdd5128bc0
docs(event) fix lv_event_get_original_target vs lv_event_get_current_target 2021-11-17 12:23:17 +01:00
Gabor Kiss-Vamosi
318edd8a3f feat(qrcode) use destructor instead of lv_qrcode_delete() 2021-11-16 14:07:58 +01:00
Gabor Kiss-Vamosi
85cc84ad94 feat(disp) allow decouplig the disp_refr timer
With this change after an lv_timer_del(disp->refr_timer); disp->refr_timer = NULL;
the user can call _lv_disp_refr_timer(NULL); anywhere to sync rendering with VSYNC or the TE signal.

lv_timer_handler() and _lv_disp_refr_timer() can not run at the same time.
2021-11-12 20:00:55 +01:00
xaowang96
25c2f53a67
fix(obj): in obj event use the current target instead of target (#2785)
When the event is bubbling, use lv_event_get_current_target
to get the obj that needs to be processed

Signed-off-by: wangxuedong <wangxuedong@xiaomi.com>

Co-authored-by: wangxuedong <wangxuedong@xiaomi.com>
2021-11-12 15:35:25 +01:00
Gabor Kiss-Vamosi
b9a5078cd9 fix(obj) fix comments of lv_obj_set_pos/x/y
fixes #2792
2021-11-12 14:18:13 +01:00
guoweilkd
fa6e49df5b
fix(draw_label): radius Mask doesn't work in Specific condition (#2784) 2021-11-12 12:24:26 +01:00
guoweilkd
ab544696dc
example: add non-null judgment to lv_example_obj_2 (#2799) 2021-11-12 11:00:48 +01:00
Gabor Kiss-Vamosi
b279f63d6b test(template) simplify _test_template.c
Originally added here 7278089040
but lost somehow
2021-11-11 17:36:12 +01:00
Gabor Kiss-Vamosi
075831a54c fix(draw) border_draw crash is special case 2021-11-11 17:31:52 +01:00
guoweilkd
1167bdfd52
fix(draw_mask): will crash if get_width/height < 0 (#2793) 2021-11-11 17:27:05 +01:00
Vincent Hamp
bf6837f4c0 docs(events) rename LV_EVENT_APPLY to LV_EVENT_READY (#2791) 2021-11-11 16:51:17 +01:00
Mariotaku
742db8bdc0
Fixed unbalanced parenthesis for LV_COORD_IS_PX (#2797) 2021-11-11 21:08:08 +08:00
Gabor Kiss-Vamosi
77e76aab21 chore(version) update version number to v8.1.1-dev 2021-11-10 12:21:29 +01:00
Gabor Kiss-Vamosi
d38eb1e689 release v8.1 v8.1.0 2021-11-10 12:17:53 +01:00
Gabor Kiss-Vamosi
7de661a3f4 docs(changelog) update changelog with the generated data 2021-11-10 12:16:03 +01:00
Gabor Kiss-Vamosi
bf76d235e0 docs(changelog) improve changelog template 2021-11-10 12:14:20 +01:00
Bluelongshirt
9113b9d4fb
fix(bidi): add weak characters to the previous strong character's run (#2777)
* fix some errors in  bidi algorithm when displaying arabic

* fix some errors in  bidi algorithm when displaying arabic

* fix format error

Co-authored-by: liuxinh <liuxinh@landicorp.com>
2021-11-10 10:47:52 +01:00
guoweilkd
7e2e25a9d6
fix(draw_img): radius mask doesn't work in specific condition (#2786) 2021-11-10 10:39:20 +01:00
guoweilkd
1b7cc1500d
fix(border_post): ignore bg_img_opa draw when draw border_post (#2788) 2021-11-10 10:37:31 +01:00
Gabor Kiss-Vamosi
7bae9e3ddd feat(event) add LV_SCREEN_(UN)LOAD_START 2021-11-10 10:13:50 +01:00