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

7331 Commits

Author SHA1 Message Date
Chris Mumford
c11569dc5c
ci(tests) use common script to install development prereqs (#2504)
Simplified workflow and documentation, by moving the
development package prerequisites into a new build script
`scripts/install-prerequisites.sh`.

Also, moved prerequisite installation into its own CI step and
removed explicit working directory change as it is no longer
needed (`main.py` does it).
2021-08-27 18:57:46 -04:00
embeddedt
da0c97a367
docs(grid) fix missing article 2021-08-27 11:09:43 -04:00
Chris Mumford
9c846ee493
test convert Makefile to CMake (#2495)
* Convert tests/Makefile to a cmake project file.

This change switches the building of LVGL tests to use cmake
which is more portable than make. Additionally, whenever
cmake can be used, instead of the Python script (`main.py`),
the former is preferred.

The interface to `main.py` is unchanged, and tests are built
and executated the same as before.

This closes https://github.com/lvgl/lvgl/issues/2474.

* Installing `gcovr` in GitHub workflow.

* Documented steps to install libpng-dev.

* Added missing stdout flush when running tests.

* Grammar tweak in README.

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-08-27 15:49:31 +02: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
Gabor Kiss-Vamosi
c514bddd9b fix(refr) set disp_drv->draw_buf->flushing_last correctly with sw rotation 2021-08-27 13:21:52 +02:00
ckielstra
5249a34d5d
docs more spelling fixes (#2499) 2021-08-27 12:15:39 +02:00
reinhard-qian
9f6d911b37
fix(event) be sure to move all elements in copy “lv_obj_remove_event_cb” (#2492)
* modified the event function

* modified the event function

Co-authored-by: Chao.Qian <qianchao@onmicro.ic>
2021-08-26 15:37:10 +02:00
embeddedt
0b7be778a2
ci(codecov) hide statuses on commits for now 2021-08-26 09:35:22 -04:00
刘帅
7d592edaa0
fix(example) scroll example sqort types (#2498)
line 32 of lv_example_scroll_6.c, if LV_USE_LARGE_COORD not configured,
x_sqr will overflow when r is greater than 256.

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

Co-authored-by: liushuai25 <liushuai25@xiaomi.com>
2021-08-26 13:57:15 +02:00
Gabor Kiss-Vamosi
eb5eaa3940 fix(msgbox) directly store the pointer of all children
The previous guess-by-child-id method was proven to be fragile

fixes #2494
2021-08-26 13:26:28 +02:00
Gabor Kiss-Vamosi
fa9898941f fix(font) handle the last pixel of the glyphs in font loader correctly
fixes: #2489
2021-08-26 12:15:27 +02:00
Gabor Kiss-Vamosi
9fb98da8a2 test(dropdown) remove dummy test case
relaetd to https://github.com/lvgl/lvgl/issues/2337#issuecomment-905002568
2021-08-26 12:11:29 +02:00
ckielstra
0f4e6e26f9
Simple spelling fixes (#2496) 2021-08-26 10:52:39 +02:00
Gabor Kiss-Vamosi
20f1867596 fix(draw) fix border width of simple (radius=0, no masking) borders 2021-08-25 16:43:48 +02:00
Gabor Kiss-Vamosi
78725f23da fix(draw) use the filtered colors in lv_obj_init_draw_xxx_dsc() functions
fixed #2491
2021-08-25 16:12:55 +02:00
Chris Mumford
53986b4b0e
test Refactor unit test scripts. (#2473)
* Refactor unit test scripts.

Does the following:

1. Remove as many dependencies on the operating system shell as possible.
   For example, use of shutil.rmtree(...) instead of os.system('rm -r ...').
   This brings this script a bit closer to being able to run on Windows.
2. Switch from os.system() to subprocess.check_call().
   * This is a bit more secure as check_call() directly invokes the subprocess
     without evaluation the arguments on a command-line.
   * Removes the need to evaluate the return code as check_call() does this.
   * Can directly set environment variables (e.g. env=cmd_env) instead of
     including with subprocess invocation (e.g. BIN=test.bin).
3. Minor cleanup to main.py sys.argv parsing.
4. PEP8 formatting.

* Ignore FileNotFoundError for rmtree('report').

* Back to os.system for gcovr.

* Removed unused shutil import.
2021-08-25 15:37:59 +02:00
Gabor Kiss-Vamosi
98b9ce5997 fix(arc) fix full arc invalidation
fixes #2490
2021-08-25 13:09:07 +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
Hotakus
6a5c0b4a70
Fix buf name error for "lv_port_disp_template.c" and optimize the arduino example (#2475)
* fix(buf) correct the name error

* fix(format) make the indent become 4 space

* fix(print) use lv_version_xxx  to serial for debug

* fix(arduino) optimize the code

* fix(arduino) use lv_version_xxx to serial
2021-08-24 14:27:36 +02:00
Gabor Kiss-Vamosi
3f18b234f6 chore(led) expose LV_LED_BRIGHT_MIN/MAX in led.h
fixes #2485
2021-08-24 09:29:08 +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
e3da5a6350
docs(readme) fix typo: hosing → hosting. (#2477) 2021-08-22 14:27:41 -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
Gabor Kiss-Vamosi
a9971471ba fix(group) keep the focused object in lv_group_swap_obj
fixes #2462
2021-08-19 21:12:09 +02:00
tfx2001
f85ae9d32b
docs(overview) fix typo (#2465) 2021-08-19 12:06:10 -04:00
Gabor Kiss-Vamosi
52c7558ab4 fix(obj) swap objects in the group too in lv_obj_swap()
fix #2462
2021-08-19 15:21:46 +02: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
Gabor Kiss-Vamosi
c5342e9324 fix(theme) use opacity on button's shadow in the default theme
fixes #2464
2021-08-19 11:23:44 +02:00
Carlos Diaz
4642dd30c2
docs(bar) fix typos in widget examples (#2463) 2021-08-18 11:26:09 -04:00
Gabor Kiss-Vamosi
bb6d6b7799 chore(example) minor improvements on lv_example_list_2 2021-08-18 14:28:02 +02:00
Gabor Kiss-Vamosi
493ace352f fix(win) enable clip_corner and border_post by default
fixes #2430
2021-08-18 14:09:35 +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
Miguel Magno
36ddbd0756
feat(mem) LV_MEM_POOL_ALLOC (#2458)
fixes  #2328

* Add LV_MEM_POOL_ALLOC #2328

* Add LV_MEM_POOL_ALLOC #2328

* Update lv_conf_template.h
2021-08-17 21:33:32 +02:00
Gabor Kiss-Vamosi
a39dac9e5c fix(checkbox) consider the bg border when positioning the indicator 2021-08-17 18:52:06 +02:00
Gabor Kiss-Vamosi
13e347055b fix(draw) fix gradent calculation of the rectangle is clipped 2021-08-17 16:53:55 +02:00
Gabor Kiss-Vamosi
01237da474 fix(draw) fix rectangle drawing with clip_corner enabled
fixes #2457
2021-08-17 16:53:55 +02:00
Gabor Kiss-Vamosi
8081599e9b fix(draw) fix drawing small arcs 2021-08-17 16:53:55 +02:00
embeddedt
8ae894ebd4
feat(switch) add smooth animation when changing state (#2442)
* feat(switch) add smooth animation when changing state

* refactor(switch) improve code quality for animation feature

* refactor(switch) flatten animation structure into widget

Co-authored-by: HX2003 <HX2003@users.noreply.github.com>
2021-08-17 12:33:55 +02:00
Gabor Kiss-Vamosi
ea2545ae5d fix(table) fix an off-by-one issue in self size calculation 2021-08-17 10:47:27 +02:00
Gabor Kiss-Vamosi
4e3b86020f docs(style) fix typo in style property descriptions 2021-08-17 10:47:27 +02:00
Gabor Kiss-Vamosi
b0a733766d fix(arc) fix other invalidation issues
fixes https://github.com/lvgl/lvgl/issues/2443#issuecomment-899717427
2021-08-17 10:47:27 +02:00
embeddedt
51a82a17ff
docs(btnmatrix) fix typo with set_all/clear_all parameters
Fixes #2455
2021-08-16 11:02:42 -04:00
jadonmmiller
85d45d7ec3
docs(overview) fix typo (#2454) 2021-08-16 09:27:44 -04:00
Amir Gonnen
e602b3f0eb
fix(cmake) require 'main' for Micropython (#2444)
Commit f2c2393b305cd71d2fc01ff8945965dccb8488b4 (#2420) breaks lv_micropython esp32 port. Apparently main dependency is require for LVGL when building Micropython, otherwise GC related code breaks

This commit adds 'main' dependency to LVGL conditionally only if building inside lv_micropython.
2021-08-13 13:30:00 -04:00
fvanroie
e8c1670381
fix(docs) add static keyword to driver declaration (#2452)
Add missing static keyword to disp_drv and indev_drv declarations in the examples
2021-08-13 13:00:14 -04:00
Gabor Kiss-Vamosi
e41c507804 fix(dropdown) adjust the handling of keys sent to the dropdown 2021-08-12 14:44:03 +02:00