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

673 Commits

Author SHA1 Message Date
X-Ryl669
923defd6b6
fix(gradient): general cleanup and fix for alignment issues (#3036)
* Try to fix ASAN behavior

* improve alignments

* fix buffer overflow and various other fixes

* minor fixes

* formatting

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-24 15:47:47 +01:00
Carlos Diaz
0b68840cd9
test(bar): add unit tests (#2845)
* test(bar) Add test for docummented default attributes

* test(bar) Update test for docummented default attributes

* test(bar): Indicator width tracks value

* test(bar) Calculate bar indicator width based on its style

Take padding, max value and bar value into consideraion

* test(bar) Indicator area gets smaller when increasing padding in LV_PART_MAIN style

* test(bar) Start value changes only when in range mode

* docs(bar): Add missing MODE to symbols

* test(bar) Start value should be smaller than current value

* test(bar): Test current value truncation to max and min value

* bar: Check bar mode in lv_bar_set_start_value

bar start_value can be changed only when bar is in LV_BAR_MODE_RANGE mode.
Return early when it's not.

* test(bar): Fix width calculation test

* bar: Initialize indic_area in constructor

* test(bar): Refactor indicator coordinate update test

* test(bar): Indicator negative value in symmetrical mode

* test(bar): Fix base direction

* test(bar): Indicator coord test for RTL base dir
2022-01-22 16:17:13 +01:00
Gabor Kiss-Vamosi
62fc7123f1 feat(gridnav): add lv_gridnav (#2911)
* add first implememtation

* Update src/extra/others/gridnav/lv_gridnav.c

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>

* minor fix

* add example and minor fixes

* add more examples

* add more examples

* code formatting

* add LV_GRIDNAC_CTRL_SCROLL_FIRST

* code formatting

* add example for list

* add docs

* Misc:  improvements to gridnav docs (#2994)

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: Ken Carpenter <62639971+FoundationKen@users.noreply.github.com>
2022-01-20 10:29:40 +01:00
ckielstra
10866ce3f0
fix(doc): full covering opacity is 255, not 256 (#3022) 2022-01-19 09:30:10 -05:00
Gabor Kiss-Vamosi
933d67fe5b
docs(event): tell to not adjust widgets in draw events
fixes #3009
2022-01-19 12:34:13 +01:00
Mariotaku
d33db6bb59
feat(sdl): support rounded images (#3012)
* added radius mask for rounded img

* improved mask composite
improved image zoom fidelity

* implementing sdl image radius

* low performance radius img drawing

* improved rounded image performance

* improved rounded image performance

* improved rounded image blending

* pixel perfect rounded image for SDL

* accurate drawing only

* supports rounded img for rect as well

* fixed mask check when zoomed

* surrounded rounded mask in lv_img with draw_complex check

* updated docs

* fixed build issue

* aware of clip_corner property

* reverted lv_img.c

* updated docs
2022-01-18 11:41:45 +01:00
Man, Jianting (Meco)
1df510ebe1
doc(rt-thread): update documentation (#3017) 2022-01-17 19:53:41 -05:00
ckielstra
febafd1cc7
chore: many trivial spelling and layout fixes (#3008)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-17 08:10:23 -05:00
Gabor Kiss-Vamosi
6266851381
docs(gpu): link style properties and boxing model
related to #2988
2022-01-15 20:19:12 +01:00
Gabor Kiss-Vamosi
0388d9218a
docs(faq): add "LVGL doesn't start, nothing is drawn on the display" section 2022-01-15 14:31:23 +01:00
Tomas Rezucha
e7a0f3b99c
fix various issues for esp32 (#3007)
* kconfig: Fix invalid dependancy in fsdrv

LV_USE_FS_* symbols are integers, instead of usual booleans.
We must treat them as such.

* ci: Get LVGL version from git tag

* docu: Update Espressif readme

* ci run apt update before installing
2022-01-14 12:47:49 -05:00
Gabor Kiss-Vamosi
e3b43eec94
docs(gesture): clarify gesture triggering with scrolling
related to #2995
2022-01-12 17:38:34 +01:00
Gabor Kiss-Vamosi
00d4ef3c53
docs(contributing): remove the mentioning of the dev branch 2022-01-11 16:54:16 +01:00
X-Ryl669
6617385f8a
feat(draw): add gradient dithering support (#2872)
* Add dithering to gradients

* Add support for 8x8 matrix for ordered dithering

* Fix CI errors

* Try error diffusion on vertical gradient too

* Vertical error diffusion dithering

* Add support for runtime based dithering mode selection (from none, ordered, error diffusion).

* Reduce the binary size of the code by sharing the dithering table when appropriate.

* Fix CI

* Fix CI

* Review corrections

* Fix union mapping

* Revert bg_color changes

* Fix for keeping bg_color in the API.

* Fix after review

* Add support for setting multiple stops per gradient in the style API

* Let's make an example

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-11 12:38:30 +01:00
Gabor Kiss-Vamosi
0645af32a2 doc(gpu): add a page for external GPU support and draw_ctx
related to: #2988
2022-01-11 11:35:28 +01:00
Gabor Kiss-Vamosi
d6c0d791f7
chore(docs): fix wording 2022-01-10 21:59:33 +01:00
Gabor Kiss-Vamosi
a1310cab2e
chore(docs): fix link 2022-01-10 21:57:04 +01:00
Gabor Kiss-Vamosi
6ce73486d3
docs(porting): add more details about adding lvgl to your project 2022-01-10 21:16:56 +01:00
Gabriel Wang
77dc456d55
docs(porting): remove duplicated content (#2984)
* docs(porting): remove duplicated content

* Update docs/porting/display.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-10 20:32:17 +01:00
Gabor Kiss-Vamosi
a5fbf22d41
chore(docs): fix lv_list_add_text
fixes: #2980
2022-01-10 12:10:50 +01:00
Gabor Kiss-Vamosi
9d3fb41896 feat(slider): consider ext_click_area on the knob with LV_OBJ_FLAG_ADV_HITTEST 2022-01-08 13:48:35 +01:00
Gabor Kiss-Vamosi
f8b29c5b6c
chore(docs): describe the directory layout for Arduino 2022-01-07 19:46:14 +01:00
Themba Dube
7ed1a5625a docs(widgets) fix edit links 2022-01-06 10:30:02 -05:00
Gabor Kiss-Vamosi
e7ac0e4198 feat(obj): add LV_OBJ_FLAG_OVERFLOW_VISIBLE 2022-01-05 16:18:19 +01:00
guoweilkd
ee3aa07a83
feat(obj): subdivide LV_OBJ_FLAG_SCROLL_CHAIN into ...CHAIN_HOR and ...CHAIN_VER (#2961)
* feat(obj scroll):subdivide LV_OBJ_FLAG_SCROLL_CHAIN into ...CHAIN_HOR and ...CHAIN_VER

* feat(roller):open the horizontal scroll chain

* chore(docs):improve the description of scroll chain
2022-01-05 13:44:05 +01:00
Gabor Kiss-Vamosi
6b82d7a356
Update arduino.md 2022-01-05 13:36:24 +01:00
patricklaf
edb207e27c
chore(docs) fix typo in btnmatrix.md (#2960)
Fix typo.
2022-01-05 09:59:24 +01:00
embeddedt
b4986ab5dc
docs(switch) improve wording
Fixes #2927
2022-01-04 21:38:15 -05:00
Gabor Kiss-Vamosi
6c64e81b15
chore: fix typo in docs 2022-01-04 16:20:21 +01:00
Gabor Kiss-Vamosi
4a07280b4a
chore: update roadmap 2022-01-04 15:32:35 +01:00
Gabor Kiss-Vamosi
49bf663dad
chore(docs) clean up toc 2022-01-03 14:36:23 +01:00
Gabor Kiss-Vamosi
28ffae8c93
docs(style): describe const styles 2022-01-03 14:04:38 +01:00
Gabor Kiss-Vamosi
380317a6cd
chore(docs): attempt to fix messed up toc tree 2022-01-03 13:52:17 +01:00
Gabor Kiss-Vamosi
2719862fc3
docs(indev): add description about gestures 2022-01-03 13:39:14 +01:00
Gabor Kiss-Vamosi
5c19b8f99b
chore(docs): update old links 2022-01-03 13:29:12 +01:00
Man, Jianting (Meco)
df044e4cb8
doc(rt-thread): add rt-thread documentation (#2951)
* feat(rt-thread): add rt-thread doc

* readme(rt-thread): add rt-thread RTOS
2022-01-03 10:10:27 +01:00
Themba Dube
02a6614b38 docs add demos 2021-12-29 16:10:36 -05:00
Man, Jianting (Meco)
26ea9b00fc
docs(display) fix typo (#2946) 2021-12-29 09:06:18 -05:00
Gabor Kiss-Vamosi
70327bdb2d feat(obj) add LV_OBJ_FLAG_SCROLL_WITH_ARROW 2021-12-17 14:58:23 +01:00
embeddedt
2f808965a1
docs(font) fix example to match v8
Closes #2873. Thanks for bringing this to our attention @rafaelcorsi.
2021-12-16 21:01:51 -05:00
_VIFEXTech
89df950082
chore(monkey) add the missing monkey from toctree (#2901) 2021-12-15 13:06:57 +01:00
_VIFEXTech
8a2c670be4
feat(others) add monkey test (#2885)
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(conf) mismatched macro judgment

* feat(others) add monkey test

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

* fix(monkey) use lv_memset_00 to initialize monkey config

* fix(monkey) random upper limit value

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

* feat(examples) add monkey test example

* feat(docs) add monkey test description

* feat(monkey) add user_data

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

* docs(monkey) add instructions

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

* fix(monkey) EX -> EXAMPLE

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

* feat(monkey) add comments to monkey config

* docs(monkey) update usage

* feat(Kconfig) add monkey test configuration

* fix(monkey) rand() -> lv_rand()

* feat(example) add button monkey test

* docs(monkey) add button introduction

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* fix(monkey) obj -> monkey

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-12-14 20:55:45 +01:00
embeddedt
d792c5f6c2
docs(imgbtn) fix typo 2021-12-09 09:57:17 -05: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
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
Gabor Kiss-Vamosi
e7f1356d0d
chore(docs) add section titles to get-started 2021-12-03 10:26:40 +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
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
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