Commit Graph

624 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
4197b2fd6e feat(scrollbar): add more control over scrollbar paddings 2022-01-24 20:11:43 +01:00
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
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
Gabor Kiss-Vamosi
bd99c921b6
chore(docs) minor formatting fix 2021-11-26 12:33:48 +01: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
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
ckielstra
b911b72f4b
docs: spelling fixes (#2828) 2021-11-23 10:50:18 +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
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
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
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
Vincent Hamp
bf6837f4c0 docs(events) rename LV_EVENT_APPLY to LV_EVENT_READY (#2791) 2021-11-11 16:51:17 +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
7bae9e3ddd feat(event) add LV_SCREEN_(UN)LOAD_START 2021-11-10 10:13:50 +01:00
Kevin Thibedeau
09e19bb687
fix(refresh) switch to portable format specifiers (#2781)
Some platforms define uint32_t as "unsigned long" rather than "unsigned int".
The %d format specifier is mismatched and the C99 format macros are the only
portable way to handle these types.

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-09 16:03:06 +01:00
Gabor Kiss-Vamosi
cc78ef4506 feat(draw) add LV_BLEND_MODE_MULTIPLY 2021-11-09 15:34:30 +01:00
Kevin Thibedeau
61b0de3bdc
fix(stm32) Mark unused variable in stm32 DMA2D driver (#2782) 2021-11-09 15:23:38 +08:00
Xiang Xiao
572880ccd3
Fix typo error in color.md 2021-11-08 01:42:12 +08:00
Kevin Thibedeau
53a3e17f76
fix(proto) Remove redundant prototype declarations (#2771) 2021-11-07 16:03:31 +08:00
Gabor Kiss-Vamosi
607dfeceb6
feat(display) add direct_mode drawing mode (#2460)
* feat(display) add direct_mode drawing mode

* update the docs
2021-11-05 15:35:36 +01:00
Miguel Magno
4e393178f3
docs: fix typo (#2765) 2021-11-05 12:18:40 +01:00
Jeff Kent
b189be67d2
fix(msgbox) add declaration for lv_msgbox_content_class (#2761) 2021-11-05 11:37:59 +01:00
DennisSHCheung
5b548006ed
fix(txt): skip basic arabic vowel characters when processing conjunction
* Skips basic vowel characters when calculating arabic conjunction

* Updated CHANGELOG.md

* Update docs/CHANGELOG.md

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

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-05 11:36:55 +01:00
Matteo Iervasi
d6341f05a9
fix(core) add L suffix to enums to ensure 16-bit compatibility (#2760) 2021-11-03 14:28:12 -04:00
Gabor Kiss-Vamosi
749d1b3ec3 docs(table) describe keypad/encoder navigation
related to: #2746
2021-11-02 19:22:09 +01:00
Gabor Kiss-Vamosi
06962a564f
docs(arduino) update how to use the examples
Related to: #2706
2021-11-02 18:40:59 +01:00
Gabor Kiss-Vamosi
174ef6692e docs describe the options to include or skip lv_conf.h 2021-11-02 13:57:45 +01:00
embeddedt
d996453207
docs(os) add example and clarify some poinits 2021-10-28 08:30:49 -04:00
Gabor Kiss-Vamosi
2e08f80361 feat(calendar): add the header directly into the calendar widget
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"
2021-10-25 18:39:18 +02:00
Johannes Marbach
b59cc9cfb8
feat(disp): add non-fullscreen display utilities (#2724)
This adds utility functions/macros for dealing with non-fullscreen
displays.

Related to lvgl/lv_drivers#166
2021-10-25 08:26:43 -04:00
Alexander Salas Bastidas
ed9169c56d
docs(rlottie): fix typo in commands 2021-10-24 01:47:24 +02:00
Gabor Kiss-Vamosi
03fff13f62
feat(rlottie) add LVGL-Rlottie interface as 3rd party lib (#2700) 2021-10-22 15:44:43 +02:00
Kenji Mouri
bbad478ce6
feat(fsdrv) add driver based on Win32 API (#2701) 2021-10-20 11:35:11 +02:00
guoweilkd
91a0d3b5e4
feat(span) indent supports percent for fix and break mode (#2693)
* span:indent supports percent for fix and break mode

* Update docs/widgets/extra/span.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-10-20 11:13:42 +02:00
Gabor Kiss-Vamosi
64527a5a1b fix(docs) add fsdrv back 2021-10-20 10:42:38 +02:00
Gabor Kiss-Vamosi
b3b3ffc2b3 feat(canvas) add lv_canvas_set_px_opa
fixes #2665
2021-10-19 13:44:40 +02:00
Gabor Kiss-Vamosi
dfa4f5cff5 feat(arc) add support to LV_OBJ_FLAG_ADV_HITTEST 2021-10-19 12:52:35 +02:00
Xiang Xiao
608d06e47a
fix(fsdrv) minor fs issue (#2682)
* 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>
2021-10-18 13:00:47 +02:00
gesture1968
2a701eeaa7
feat(lv_spinbox) support both right-to-left and left-to-right digit steps when clicking encoder button (#2644)
* Update lv_spinbox.c

* Added support for moving the Spinbox digit position from right-to-left when clicking the button on an encoder. The default behaviour is when clicking the encoder button, the digit is moved from left-to-right (MSB to LSB). 
* Added a check to see if the spinbox digit-count is just one. In that case it is pointless to check the buttonclick
* See also the spinbox.h file

* Update lv_spinbox.c

* Forgot the implementation of the setter function
* forgot a ;

* Update lv_spinbox.h

Adding Spinbox support for moving the digitposition both from left-to-right and right-to-left when editing a spinbox and clicking the encoder button. The current behaviour is clicking the encoder button only moves the digitposition from right to left (from MSB to LSB)

* Update lv_spinbox.c

Added brief / comment to new function

* Update lv_spinbox.h

More clear Brief / Comment

* Update lv_spinbox.c

nested function replaced by lv_pow fiunction

* Update lv_spinbox.h

removed spaces

* Update lv_spinbox.h

Replaced type used for direction of digit step when clicking an encoder with existing LVGL lv_dir_t

* Update lv_spinbox.c

Replaced type used for direction of digit step when clicking an encoder with existing LVGL lv_dir_t

* Update spinbox.md

Added comment for the new function 'lv_spinbox_set_digit_step_direction'

* Update src/extra/widgets/spinbox/lv_spinbox.h

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

* Update src/extra/widgets/spinbox/lv_spinbox.h

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

* Update lv_spinbox.c

bug: old definition LV_SPINBOX_DIGIT_DIR_TO_RIGHT changed to LV_DIR_RIGHT

* Update lv_spinbox.h

Extra linefeed removed

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
2021-10-14 13:42:25 +02:00
Gabor Kiss-Vamosi
ee5369e2d2 feat(event) add LV_EVENT_SCREEN_LOADED/UNLOADED events 2021-10-13 12:36:03 +02:00
Jianting (Meco) Man
8debe10cd2
feat add support for rt-thread RTOS (#2660) 2021-10-12 17:35:37 +02:00
Johannes Marbach
d09f6bdea3
feat(disp): Enable rendering to display subsection (#2583)
This change introduces new fields on `lv_disp_drv_t` that allow to
specify the size of the full display and the offset of the display
subsection that is being rendered to. The values are used to transform
the drawing area before calling `flush_cb` so that only the desired part
of the full display is being rendered to.

Relates to: lvgl/lv_drivers#166
2021-10-11 08:48:15 -04:00
Johannes Marbach
7658f98e86
feat(keyboard): add user-defined modes (#2651)
As discussed in https://forum.lvgl.io/t/localized-keyboard-layouts/6734,
this adds further `..._USER_N` keyboard modes that can be used to
implemented more keyboard layouts for locales that need more than 4
layers.
2021-10-11 14:46:07 +02:00
Jose Commins
07688e6543
docs(colorwheel) fix old API names (#2643)
`lv_colorwheel_set_color_mode` is now `lv_colorwheel_set_mode`
2021-10-06 12:55:09 -04:00
Miguel Magno
d93360537f
fix typos (#2634) 2021-10-04 18:37:07 +02:00
Gabor Kiss-Vamosi
5f90029811
feat(event) add LV_EVENT_CHILD_CREATED/DELETED (#2618)
* feat(event) add LV_EVENT_CHILD_CREATED/DELETED

* update docs and CHANGELOG
2021-10-04 16:52:11 +02:00
grarup
4eb406440b
fix LV_FORMAT_ATTRIBUTE fix for gnu > 4.4 (#2631)
Co-authored-by: Peter Grarup <pegp@dgs-diagnostics.com>
2021-10-04 16:42:41 +02:00
Gabor Kiss-Vamosi
8e7bba6ace docs libs fixes 2021-10-04 15:27:52 +02:00
Gabor Kiss-Vamosi
1a8fed5df0 docs add libs to the main index 2021-10-04 15:08:52 +02:00
Gabor Kiss-Vamosi
f5f9562336 docs include paths in libs 2021-10-04 15:03:49 +02:00
Gabor Kiss-Vamosi
18f61c5f77
arch add small 3rd party libs to lvgl (#2569)
* move png, sjpg, bmp, gif, fs_if to extra/libs

* reorganize the examples

* update lv_conf_internal.h

* fix warnings

* add freetype

* remove unused assets

* add the new libs to build tests

* update the docs
2021-10-04 14:34:11 +02:00
Lzx-James
3211066c05
docs(display) fix typo (#2624) 2021-09-30 09:46:37 -04:00
Gabor Kiss-Vamosi
2a9b9e6e11
Update arc.md 2021-09-29 13:30:44 +02:00
Francesco Valla
fc4fdb1e2c
fix(disp) set default theme also for non-default displays (#2596)
* feat(theme) add getter function for default theme

* fix(disp) set default theme also for non-default displays

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-29 11:24:13 +02:00
Gabor Kiss-Vamosi
e6e98abbc2
docs update version support table 2021-09-29 10:37:51 +02:00
seteq
c77ac0d904
docs add static for lv_indev_drv_t (#2605)
* added static for lv_indev_drv_t

* removed accidential edit

* Update indev.md
2021-09-29 10:31:35 +02:00
Johannes Marbach
d57eb7614d
feat(btnmatrix/keyboard): add option to show popovers on button press (#2537)
This adds a new option that, when enabled, shows popovers when pressing
buttons, similar to how the system keyboards on Android and iOS behave.
2021-09-28 11:28:59 +02:00
fvanroie
bc9c356347
docs(animimg) add to extra widgets index and fix example (#2610)
`lv_example_animimg_1` should not contain the `.c` extension, and add animation image to the index page for extra widgets.
2021-09-27 13:02:52 -04:00
fvanroie
f9d9aef122
docs(animimg) Add missing animation image page (#2609)
* docs(animimg) Add missing animation image page

Skeleton page for the new `animimg` object.
It needs more review and updating, but this can serve as a start.

* docs(examples) Add index.rst for animation image

Add index.rst for animation image to include the example in the documentation of the widget.

* Update animimg.md
2021-09-27 17:52:00 +02:00
Gabor Kiss-Vamosi
2433732570 docs(image) mention the frame_id paramter of lv_img_decoder_open
Related to https://github.com/lvgl/lvgl/pull/2197#issuecomment-926852353
2021-09-27 17:04:04 +02:00
Mariotaku
c45d9ccc3e
fix lv_deinit when LV_USE_GPU_SDL is enabled (#2598)
* Fixed lv_deinit when LV_USE_GPU_SDL is enabled

* Update CHANGELOG.md
2021-09-27 11:04:53 +02:00
Neo
5f75a3b406
fix(snapshot) snapshot is affected by parent's style because of wrong coords (#2579)
* fix(snapshot) image is affected by parent's style because of wrong coordinates

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>

* fix(snapshot): take ext_draw_size into account and set disp res to obj size.

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Change-Id: Iae0d37fa1b2cdf20220087ced51857a36e83bb6d
2021-09-23 18:28:28 +02:00
Johannes Marbach
51f3310592
fix(btnmatrix): make ORed values work correctly with lv_btnmatrix_has_btn_ctrl (#2571)
This commit replaces the current `actual & expected` check in
`lv_btnmatrix_has_btn_ctrl` with `(actual & expected) == expected`. This
is required to make the function work with ORed control flags because
otherwise a parity in *any* bit will result in a return value of `true`
even if not all expected bits are set.
2021-09-22 12:03:19 +02:00
Gabor Kiss-Vamosi
56ebb1a4c8 feat(textarea) remove the need of lv_textarea_set_align
It was used to position the text in one line text areas where the label is shorter then the text area itself.
However, setting min_width=100% in case of one line text area ensures that the label is at least as wide as
the text area. This way the normal text_align style property can be used too.

Fixes https://forum.lvgl.io/t/spinbox-text-centering-not-working-as-intended-expected/6762/4
2021-09-13 20:09:54 +02:00
Gabor Kiss-Vamosi
26e15fa577 fix(imgbtn) add lv_imgbtn_set_state
The normal lv_obj_add/clear_state couldn't refresh the image button properly.
2021-09-13 17:44:12 +02:00
Karijn Wessing
953d9fb003
feat(example) add lv example list 2 (#2545)
* added micropython sample for obj.move_to_index(index)

* formatting update

* added lv.group_remove_obj(btn) for command buttons

* updated CHANGELOG.md
2021-09-13 17:41:25 +02:00
Thomas Hepworth
8abd060a8a
example(chart) add area chart example (#2507)
* feat add stacked area chart example

The example shows how to use a line chart and masking to create a stacked area chart.

* feat stacked area chart example

Updated index.rst to contain the stacked area chart example

* feat stacked area chart example

Coding style changes

* Update changelog

* feat(example) stacked area chart

Added axis ticks

* feat(example) stacked area chart

Responses to PR comments
- Changed to fixed point maths
- Renamed variables and filenames

* feat(example) stacked area chart

Made shift amount a variable.

* feat(example) stacked area chart

Fixed typo in changelog

Co-authored-by: Tom Hepworth <Tom_Hepworth@mentor.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-13 12:11:10 +02:00
Miguel Magno
5de6fbf847
docs(style) use correct API name for local styles (#2550) 2021-09-12 08:09:50 -04:00
Johannes Marbach
2cd5a90b7d
feat(msgbox): omit title label unless needed (#2539)
Prior to this commit, when the title string was empty and the close
button disabled, an extra empty line showed at the top of the message
box. This commit prevents adding the title label unless it has content
or is needed as a spacer for the close button.

As a positive side effect, this also prevents the default "text" from
displaying when NULL is passed as the title.

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-09 15:09:49 +02:00
Johannes Marbach
52dac2b8e4
feat(msgbox): add function to get selected button index (#2538)
This adds a new function lv_msgbox_get_active_btn that works analogously
to lv_msgbox_get_active_btn_text but returns the button index instead of
its text.

The index is more convenient for comparison in localized applications as
it doesn't depend on the current language.
2021-09-09 14:40:37 +02:00
Kevin Thibedeau
ec9b41a05f
fix(zoom) multiplication overflow on 16-bit platforms (#2536) 2021-09-06 21:40:38 -04:00
Kevin Thibedeau
7d9fe20a0e
docs(all) Proofread, fix typos and add clarifications in confusing areas (#2528)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-06 10:55:37 +02:00
Karijn Wessing
780e0efe2c
feat(obj) add lv_obj_move_to_index(obj, index), renamed lv_obj_get_child_id(obj) to lv_obj_get_index(obj) (#2514)
* - renamed lv_obj_get_id(obj) to lv_obj_get_index(obj).

- added lv_obj_move_to_index(obj, index).

* automatic review comment fixed

* removed unused variable

* review issue

* restored deprecated function in header, otherwise Build Micropython with LVGL submodule / build (pull_request)  failes

* moved deprecated lv_obj_get_child_id() back to lv_obj_tree.h, otherwise Micropython will not build

* inline function did not work

* made deprecated function 'static inline'

* and now also inline

* move static inline function to lv_api_map.h again

* removed lv_obj_move_up/down

* changed log to warning for deprecated function

* redefined lv_obj_move_foreground(obj) and lv_obj_move_background(obj) as inline functions now calling lv_obj_move_to_index(obj, index).

- lv_obj_swap(obj1, obj2) added. (#2461)
2021-09-05 20:47:55 +02:00
Johannes Marbach
53b65a7964
fix(examples) don't compile assets unless needed (#2523)
This wraps the code for the assets under examples/assets in
LV_BUILD_EXAMPLES so that it is not compiled when examples are
deactivated in lv_conf.h.
2021-09-03 15:01:01 +02:00
Ehsan Galavi
21f6a2ea03
docs(flex) update flex.md (#2517)
Description sentences "LV_FLEX_FLOW_ROW_WRAP_REVERSE"  and "LV_FLEX_FLOW_COLUMN_WRAP_REVERSE" are corrected.
2021-09-01 09:12:39 +02:00
Kevin Thibedeau
4d74194e0d
fix(color) Bad cast in lv_color_mix() caused UB with 16bpp or less (#2509) 2021-08-30 16:46:41 +02:00
Avra Mitra
d53b873556
Corrected a function name in obj.md (#2511)
In the example of `lv_obj_align_to(obj_to_align, obj_referece, LV_ALIGN_..., x, y)`, the function name was written as `lv_obj_align()`.
2021-08-30 11:08:04 +02:00
embeddedt
da0c97a367
docs(grid) fix missing article 2021-08-27 11:09:43 -04:00
embeddedt
5dbea7d725
docs(display) fix grammar in one spot 2021-08-27 08:35:38 -04:00
Gabor Kiss-Vamosi
bcd99e8e43 docs(indev, layer) update lv_obj_set_click() to lv_obj_add_flag() 2021-08-27 13:58:46 +02:00
ckielstra
5249a34d5d
docs more spelling fixes (#2499) 2021-08-27 12:15:39 +02:00
ckielstra
0f4e6e26f9
Simple spelling fixes (#2496) 2021-08-26 10:52:39 +02:00
Vincent Hamp
088b2bd490
docs fix typo: arae -> area (#2488)
Co-authored-by: Vincent Hamp <hamp@zimo.at>
2021-08-24 14:51:29 +02:00
Karijn Wessing
e111ea2a62
added lv_obj_move_up() and lv_obj_move_down() (#2467)
* - small with unneeded lv_obj_invalidate()  fix in lv_obj_move_foreground() and lv_obj_move_background()

- added lv_obj_move_up() and lv_obj_move_down()
- used new functions in sample 2
- used lv_obj_swap() to shuffle (turn around) list

* solved build error

* added top and bottom buttons in sample
2021-08-24 14:30:38 +02:00
fvanroie
2d38f1884c
Fix two examples in the docs with new v8 api (#2486)
* docs(overview) fix draw_buf fieldname

Change display driver buffer field to the new v8 field name: draw_buf.

* docs(overview) fix lv_img_create parameters

lv_img_create only has 1 parameter in v8.

* docs(get-started) fix draw_buf fieldname

Display driver `buffer` field changed to the new v8 field name: `draw_buf`.
2021-08-24 09:17:59 +02:00
Mariotaku
9b92885f83
fix(draw) use correct pointer in lv_draw_mask assertion (#2483) 2021-08-23 10:25:00 -04:00
Chris Mumford
35c430fe2d
docs update company name and year (#2476)
Update from 2020/LLC → 2021/Kft.
2021-08-22 14:27:23 -04:00
Miguel Magno
b7e6f6763d
docs fix typos (#2472) 2021-08-20 19:47:59 -04:00
tfx2001
f85ae9d32b
docs(overview) fix typo (#2465) 2021-08-19 12:06:10 -04:00
Gabor Kiss-Vamosi
906448ef63 feat(obj) place the scrollbar to the left with RTL base dir.
Related to #2424
2021-08-19 12:51:29 +02:00
Karijn Wessing
9a1f7f2fcb
feat(obj) add lv_obj_swap() function (#2461)
* proposal for lv_obj_swap() function

* review issues applied

* review changes for comments
2021-08-18 11:32:10 +02:00
embeddedt
51a82a17ff
docs(btnmatrix) fix typo with set_all/clear_all parameters
Fixes #2455
2021-08-16 11:02:42 -04:00