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

7246 Commits

Author SHA1 Message Date
Xiang Xiao
d5b64e1b5d
fix(lv_utils.c): remove the unneeded header inclusion (#2526)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-03 14:51:29 +02:00
Xiang Xiao
c6e8ee5002
fix(Kconfig) fix the comment in LV_THEME_DEFAULT_DARK (#2524)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-03 14:50:42 +02:00
eudoxos
4e58f74163
fix(sprintf) add format string for rp2 port (#2512)
* fixes for rp2 port (only format strings: int/int32_t mismatch, %d -> %ld)

* use portable PRId32 printf format, #include <inttypes.h> via lv_printf.h

* define LV_PRId32 macro (for int)

* figure out good way to build inside Micropython (plus indentation)

* re-add examples (lost on the way)

* hopefully fix PRI32d

* Revert off CMakeLists.txt changes so that this is about printf only
2021-09-03 14:45:42 +02:00
Gabor Kiss-Vamosi
f3342269f2 fix(color) fox color premult precision with 16 bit color depth 2021-09-02 13:41:30 +02:00
Gabor Kiss-Vamosi
4250e3c627 fix(draw) fix shdow drawing with readius=0
fixes #2519
2021-09-02 13:40:22 +02:00
Avra Mitra
90e241ce2a
chore(btnmatrix) removed unnecessary semicolon (#2520)
Removed an unnecessary semicolon at line 97 ( `lv_btnmatrix_t * btnm = (lv_btnmatrix_t *)obj;` )
2021-09-02 12:16:20 +02:00
Chris Mumford
b1bf7fd29a
test(ci) build and run tests in parallel. (#2515)
Create one GitHub workflow job for each build option build
or test execution. This allows each of the five builds to
be executed in parallel as well as making it easier to
navigate to the test output as it now resides in its own
job.

This change **does** change the command-line arguments to
the test execution script. This is required to allow the
build options name to be passed in.

New `tests/main.py` command-line help:

```
usage: main.py [-h] [--build-options BUILD_OPTIONS] [--clean]
               [--report]
               [{build,test} [{build,test} ...]]

Build and/or run LVGL tests.

positional arguments:
  {build,test}          build: compile build tests, test:
                        compile/run executable tests.

optional arguments:
  -h, --help            show this help message and exit
  --build-options BUILD_OPTIONS
                        the build option name to build or run.
                        When omitted all build configurations
                        are used.
  --clean               clean existing build artifacts before
                        operation.
  --report              generate code coverage report for
                        tests.

This program builds and optionally runs the LVGL test programs.
There are two types of LVGL tests: "build", and "test". The
build-only tests, as their name suggests, only verify that the
program successfully compiles and links (with various build
options). There are also a set of tests that execute to verify
correct LVGL library behavior.
```
2021-09-01 11:58:14 +02:00
incity
effd87eae0
Update README.md (#2516) 2021-09-01 11:47:09 +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
guoweilkd
996b0080bf
fix(span) fix some bugs (overflow,decor,align) (#2518) 2021-09-01 09:07:12 +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
Hotakus
9ed265e890
fix(imgbtn) displayed incorrect when the coordinate is negative (#2501)
* refactor(img) the function name spelling error

* fix(imgbtn) imgbtn display incorrect when the coordinate is negative

* imgbtn is ok now

* fix the potential bug that maybe it can not run into the "for" loop correctly
2021-08-30 15:09:02 +02:00
Chris Mumford
df6cbfe866
ci(tests) run tests using ctest (#2503)
Simplifies `tests/main.py` as it no longer needs to invoke
tests individually or keep track of and report their pass/fail
status.

Also enables the ability to run tests in parallel, support timeouts,
and re-run flaky tests.

https://cmake.org/cmake/help/latest/manual/ctest.1.html
2021-08-30 08:45:33 -04: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
Chris Mumford
b5f6411732
ci(tests) add dependency on GNU parallel (#2510)
lv_binding_micropython added a dependency on GNU parallel[1] to allow
the tests to be run in parallel.

[1] https://www.gnu.org/software/parallel/
2021-08-29 07:26:35 -04:00
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