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

7580 Commits

Author SHA1 Message Date
embeddedt
cb3de308fd
ci try alternate checkout mechanism 2021-12-12 21:52:31 -05:00
embeddedt
9fcf52a82b
ci ensure lvgl-bot is used to make commits 2021-12-12 21:49:22 -05:00
embeddedt
02f02fa78f
ci apply my updates to the verify-formatting action 2021-12-12 21:44:14 -05:00
embeddedt
d1ccbf607f
ci fix typo in formatting action 2021-12-12 21:42:15 -05:00
embeddedt
1f6037ce98
ci more formatting action updates 2021-12-12 21:39:34 -05:00
embeddedt
065d821c70
ci test formatting action 2021-12-12 21:37:21 -05:00
embeddedt
2f8e4bc4c4
ci more debugging for formatting action 2021-12-12 21:35:18 -05:00
embeddedt
be9722c420
ci update action 2021-12-12 21:33:32 -05:00
embeddedt
7af78498a8
ci create handler for formatting requests 2021-12-12 21:30:46 -05:00
Gabor Kiss-Vamosi
9810920fc5 fix(event): crash if an object was deleted in an event
fixes: #2886
2021-12-10 13:40:31 +01:00
embeddedt
d792c5f6c2
docs(imgbtn) fix typo 2021-12-09 09:57:17 -05:00
SgtPepper
c2b0343431
fix(list) guard image creation with LV_USE_IMG (#2881) 2021-12-09 09:47:21 -05:00
Neo
a2e4dfdce2
fix(snapshot): make fake display size big enough to avoid align issue. (#2883)
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Change-Id: I5a5e39f15b816bc281a6b9fb348a2adebb947368
2021-12-08 18:57:30 +01:00
_VIFEXTech
01973c2242
fix(sdl) correct makefile (#2884)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-12-08 09:19:31 -05:00
Gabor Kiss-Vamosi
d47cd1d7fe fix(btnmatrix): keep the selected button even on release
fixes: #2858
2021-12-07 15:38:11 +01:00
Carlos Diaz
559c2cdc9e
test(switch): add initial unit test (#2794)
* test(switch): Add test file and state at creation test

* test(switch): Event handler called only once per click

* test(switch): Add test state change when event bubbling is enabled

* test(switch): Cleanup event bubbling test

* tests(switch): Update memory test and add basic animation test

* test(switch) Add helper to click on switch

* test(switch) Add basic test for knob size calculation

* misc(switch) Replace switch knob rounding error magic number with define

* test(switch) Improve animation test

Properly wait for 50ms after clicking on the switch using lv_test_indev_wait and also assert on switch state after the first and second clicks

* test(switch) cleanup

* misc(switch) Cleanup

* switch: Expose _LV_SWITCH_KNOB_EXT_AREA_CORRECTION value

So we can use it when testing extra draw size
2021-12-07 13:49:26 +01:00
Neo
e50950683d
fix(draw): fix set_px_cb memory write overflow crash. (#2882) 2021-12-07 13:46:02 +01:00
Gabor Kiss-Vamosi
43729d1502 fix(build) fix sdl build with make
fixes 1281abef9e (commitcomment-61235260)
2021-12-06 10:44:23 +01:00
ckielstra
a5058eafd0
style(examples) fix style issues in Python examples (#2880)
Removes all semicolons at line endings in the Python examples.
2021-12-05 08:41:17 -05:00
s-hadinger
0b91b6c42f
chore(docs): fix typo (#2878) 2021-12-03 14:26:55 +01:00
guoweilkd
5a49c06833
fix(freetype): fix memset error (#2877) 2021-12-03 13:08:06 +01:00
Gabor Kiss-Vamosi
9c676421ff fix(align) fix LV_SIZE_CONTENT size calculation with not LEFT or TOP alignment 2021-12-03 12:25:34 +01:00
s-hadinger
d379804366
docs(get-started) add introduction for Tasmota and Berry (#2874)
* Tasmota introduction

* Update docs/get-started/index.md

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

* Update docs/get-started/index.md

* Update docs/get-started/index.md

* Update docs/get-started/index.md

* change link

* improve tutorial list

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-12-03 10:50:17 +01:00
guoweilkd
c43519e659
fix(span): fix align and break word (#2861)
* fix(span):break word error under utf-8 encoding

* fix(span):fix txt align
2021-12-03 10:41:25 +01:00
Gabor Kiss-Vamosi
e7f1356d0d
chore(docs) add section titles to get-started 2021-12-03 10:26:40 +01:00
X-Ryl669
0564b93d0e
perf(color): add faster lv_color_hex function (#2864)
* Add faster lv_color_hex method to convert from ARGB32 to lv_color_t, bypassing lv_color_make and component extraction

* Update src/misc/lv_color.h

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-12-03 10:22:13 +01:00
Gavin Li
222af5ad4a
fix(refr): swap buffers only on the last area with direct mode (#2867)
* fix(refr): avoid swapping buffers every area in direct mode

* Update src/core/lv_refr.c

* Update src/core/lv_refr.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-12-03 09:45:05 +01:00
Gabor Kiss-Vamosi
29a9cd7257 chore code format 2021-12-03 09:41:48 +01:00
Gabor Kiss-Vamosi
a369f18c57 fix(theme) make the basic theme really basic 2021-12-03 09:39:12 +01:00
X-Ryl669
cd26e0fc2a
feat(rlottie): add animation control options (#2857)
* Add support for ARGB32 to RGBA5658 format conversion required by LVGL

* Add animation control for rlottie animation

* Add support for composable play control and event sending upon reaching end of animation.

* Add protection against multiple event posting upon animation ending

* Actually pause the timer is the animation is paused. Resume on playing again.

* Improve documentation for the additional features

* Stop the timer if not looping and we've reached the end of the animation in the provided direction

* Fix various defects and improve documentation

* Add support for swapped RGB565 format too

* Let pause actually pause without messing the current frame index in the animation.

* Set invalid destination frame upon construction so it's possible to pause from frame 0.

* Set impossible destination frame index 

So it's updated on first pause
2021-12-03 09:28:27 +01:00
ckielstra
91fc579ee7
docs fix spelling, parameter descriptions, comments, etc (#2865) 2021-12-02 08:44:05 -05:00
Duco Sebel
5ed1eec68c
fix(arc) free memory when drawing full-circle arc (#2869) 2021-12-02 08:37:46 -05:00
embeddedt
1fa7257801
ci(micropython) switch to newer GCC action 2021-12-02 08:32:09 -05:00
embeddedt
04f47eae0d
ci(style) force color on diff to help highlight whitespace changes 2021-12-02 08:13:57 -05:00
geert-KLA-BE
6282996764
feat(lv_hal_indev): add missing lv_indev_delete() (#2854)
* feat(lv_hal_indev): Add missing lv_indev_delete()

* feat(lv_hal_indev): Add missing lv_indev_delete() (fix formatting)
2021-12-01 15:37:44 +01:00
geert-KLA-BE
ecabf77d58
fix(indev): update lv_indev_drv_update to free the read_timer (#2850)
* fix(lv_hal_indev): update lv_indev_drv_update to free the read_timer
The read timer was not freed and recreated. The display was also not checked to be NULL.

* fix(lv_hal_indev): update lv_indev_drv_update to free the read_timer (fix formatting)

* fix(lv_hal_indev): update lv_indev_drv_update to free the read_timer (fix formatting 2)
2021-12-01 14:56:53 +01:00
Virus.V
79f1be5cfa
fix(draw): fix memory access out of bounds when using blend subtract (#2860)
* fix(draw) fix memory access out of bounds when using blend subtraction mode (#2847)

* fix(draw) correct the drawing error of fill_set_px
2021-12-01 14:53:31 +01:00
Gabor Kiss-Vamosi
ee65410c37 fix(layout) fix layout recalculation trigger in lv_obj_add/clear_fleg 2021-11-30 22:23:37 +01:00
Gabor Kiss-Vamosi
d5ede0ebc6 fix(img) fix invalidation issue on transformations
fixes #2853
2021-11-30 20:35:12 +01:00
guoweilkd
cf163b0cc6
feat(freetype): optimize memory allocation (#2849)
1. Increase the reference count for the font name
2. Merge lv_face_info_t into lv_font_fmt_ft_dsc_t
2021-11-30 19:19:22 +01:00
guoweilkd
92da356bc4
feat(Kconfig): add FreeType config (#2846)
Change-Id: I581af22e639c124407ff003f17aaf76d413bba41
2021-11-30 19:01:36 +01:00
embeddedt
eeee48b1c9
docs(bar) fix default range
Related: https://github.com/lvgl/lvgl/pull/2845#issuecomment-981288322
2021-11-29 10:59:44 -05:00
Mariotaku
1281abef9e
arch(sdl) migrated to use new backend architecture (#2840)
* migrated to use new backend architecture

* formatted code

* with direct_mode blend coordinates are working now

* added draw_img_core to backend

* moving from gpu/sdl to draw/sdl

* updated format

* updated format

* fixed include path

* fixing build issue
2021-11-29 14:53:06 +01:00
HX2003
163deb3dfb
chore(menu): fix broken links for the menu widget (#2848) 2021-11-29 13:55:14 +01:00
Gabor Kiss-Vamosi
49313840ee fix(obj) fix lv_obj_fade_in 2021-11-29 13:33:14 +01:00
Miau09
ea8caa75c5
fix(chart) add lv_chart_refresh() to the functions which modify the data (#2841)
* Update lv_chart.c

add lv_chart_refresh(obj); on some more functions

* Update chart.md

small typo
2021-11-29 11:43:04 +01:00
_VIFEXTech
216298d6e9
fix(conf) mismatched macro judgment (#2843)
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(conf) mismatched macro judgment

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-11-29 11:42:08 +01:00
HX2003
ad947d3085
feat(widgets): add menu widget (#2603)
* add menu widget

* Update lv_example_widgets.h

* fix errors

* Update lv_menu.c

* try to fix errors

* micropython

* Fix colons

* Simplify and optimise

* Refactor

* Update lv_example_menu_3.c

* Update lv_example_menu_3.c

* Add simple micropython examples

* Improvements

* Automatically set clickable flags

* Custom header example

* Include example

* Refactor again

* Fix error

* Fix error

* Add back micropython example

* Hide back btn by default

* Add config

* Fix spacing

* Fix spacing

* Docs

* Update lv_theme_default.c

* Remove shaded text

* Improve clarity

* Create index.rst

* Update custom header example

* Change lv_menu_set_mode_sidebar to lv_menu_set_sidebar_page

* Fix unused variable

* Added ability to set title to page

* Flex

* Simplify sidebar check

* Rename mode and update header btn

* Run lv_conf_internal_gen.py

* Run code-format.sh

* Add contributors

* Micropython example 3

* Micropython example 4

* Improve docs
2021-11-29 11:33:34 +01:00
embeddedt
1c64b78866
docs(porting) clarify that displays must be registered before input devices
Related: #2844 (thanks @SgtPepperFTW)
2021-11-28 20:41:18 -05:00
_VIFEXTech
5433e0bc2a
fix(ffmpeg): when disabled LV_FFMPEG_AV_DUMP_FORMAT makes av_log quiet (#2838)
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(ffmpeg) when disabled LV_FFMPEG_AV_DUMP_FORMAT makes av_log quiet

Signed-off-by: _VIFEXTech <1290176185@qq.com>

* docs(ffmpeg) add example code

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-11-26 19:35:39 +01:00