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 f2c2393b30
(#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
Gabor Kiss-Vamosi
55e8846871
docs(style) complete the description of style the properties
2021-08-12 14:37:15 +02:00
Gabor Kiss-Vamosi
e20926056b
fix shadowed variable
2021-08-12 14:27:27 +02:00
Gabor Kiss-Vamosi
ff087dafb4
docs(style) complete the description of style the properties
2021-08-12 14:26:21 +02:00
Gabor Kiss-Vamosi
df600183f2
fix shadowed wariable
2021-08-12 14:22:40 +02:00
Gabor Kiss-Vamosi
d0c1c673a8
fix(img decoder) add error handling if the dsc->data = NULL
2021-08-12 14:18:26 +02:00
Gabor Kiss-Vamosi
ad5b1bdc00
fix(chart) be sure the chart doesn't remain scrolled out on zoom out
...
fixes https://forum.lvgl.io/t/some-questions-about-chart-line-data-refresh/6383/4?u=kisvegabor
2021-08-12 13:52:52 +02:00
Gabor Kiss-Vamosi
98bc1fe09e
feat(obj) add lv_obj_get_x/y_aligned
...
fixes #2438
2021-08-11 13:19:13 +02:00
Gabor Kiss-Vamosi
8f0b5ab023
fix(calendar) fix caluclation today and highlighted day
...
realted to #2450
2021-08-11 11:08:10 +02:00
Gabor Kiss-Vamosi
8a50edd068
fix(dropdown) handle LV_KEY_ENTER
...
fixes https://forum.lvgl.io/t/how-to-send-key-events-to-a-dropdown/6393
2021-08-11 10:49:05 +02:00
Themba Dube
e5fafc4122
docs(flex) fix typo in flex grow section
2021-08-10 11:54:49 -04:00
Gabor Kiss-Vamosi
adbac5220b
fix(calendar) fix incorrect highlight of today
...
fixes #2446
2021-08-10 16:09:20 +02:00
Gabor Kiss-Vamosi
0f14f49465
fix(arc, merter) fix invaidation in special cases
...
fixes #2443
2021-08-09 15:37:58 +02:00
Gabor Kiss-Vamosi
6118d63c2f
fix(chart) fix typo in 655f42b8
2021-08-09 15:30:31 +02:00
Gabor Kiss-Vamosi
655f42b852
fix(chart) don't draw series lines with < 1 points
...
Releated to https://forum.lvgl.io/t/maybe-it-has-bug-in-draw-chart-line-data/6394
2021-08-09 13:31:53 +02:00
Gabor Kiss-Vamosi
a1b362c986
fix(canvas) invalidate the image on delete
...
fixes #2398
2021-08-09 11:23:48 +02:00
Gabor Kiss-Vamosi
3c86d777c1
chore(format) lv_conf_template.h minor formatting
...
related to #2441
2021-08-09 11:16:16 +02:00