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

7150 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
79edb37b0a fix(dropdown) fix list position with RTL base direction
related to #2424
2021-08-02 12:27:57 +02:00
Gabor Kiss-Vamosi
531afcc6ce fix(obj) fix lv_obj_align_to with RTL base direction
Related to #2424
2021-08-02 12:27:57 +02:00
Amir Gonnen
4bdeb756da
fix(examples) join usage (#2425)
Use 'join' correctly on Python scripts
2021-08-02 11:56:44 +02:00
guoweilkd
65415d3f68
docs(chart) typos (#2427) 2021-08-02 11:51:18 +02:00
Levente Tamas
980a95ce5d
kconfig: minor fix for default dark theme option (#2426)
Changes the name of the CONFIG variable from
LV_THEME_DEFAULT_PALETTE_LIGHT to LV_THEME_DEFAULT_DARK.
Most likely it should have been included in
4f46336a544d6cde0ed14f37775dfd8ecb772af3
2021-08-02 11:50:30 +02:00
Amir Gonnen
4effc87a87
fix(examples) add missing lv.PART.INDICATOR (#2423) 2021-07-31 17:40:13 -04:00
Amir Gonnen
145440dbce
fix(examples) use lv.grid_fr for MicroPython (#2419)
Instead of re-implementing LV_GRID_FR, use lv.grid_fr

Also use lv.GRID_TEMPLATE.LAST instead of lv.COORD.MAX where needed
2021-07-31 09:07:07 -04:00
xaowang96
65475a75ba
feat(anim) add interface for handling lv_anim user data. (#2415)
* fix(animation) add interface for setting user data.

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

* fix(animation) add interface for getting user data.

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

* fix(animation) resolve parameter errors

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

Co-authored-by: wangxuedong <wangxuedong@xiaomi.com>
2021-07-29 12:32:46 +02:00
Gabor Kiss-Vamosi
524f8dd50b fix(style) initialize colors to black instead of zero
With LV_COLOR_SCREEN_TRANSP alpha should be 0xff not 0x00
2021-07-28 17:12:53 +02:00
Uli Raich
06b3013de5
feat(examples) add MicroPython version of lv_example_anim_3 and allow loading roller font dynamically (#2412) 2021-07-28 08:51:41 -04:00
Gabor Kiss-Vamosi
4dd1d566fc fix(dropdown) use LV_EVENT_READY/CANCEL on list open/close
Instead of LV_EVENT_VALUE_CHANGE to avoid conflicts with new option selection.
2021-07-28 10:09:46 +02:00
Gabor Kiss-Vamosi
dae7039803 fix(dropdown) send LV_EVENT_VALUE_CHANGED to allow styling of the list 2021-07-28 09:52:37 +02:00
Gabor Kiss-Vamosi
8c15933030 fix(table) clip overflowing content
If there was a extra draw padding the cells were draw out of the real table
2021-07-28 09:38:45 +02:00
SmartAnda
95347b768b
fix circle drawing algorithms (#2413) 2021-07-28 08:58:25 +02:00
Amir Gonnen
559b6458c0
fix(examples) remove symlinks (#2406)
Remove symlinks from Python examples because the JS simulator doesn't follow them and sees the target filename instead
2021-07-27 19:13:30 -04:00
Gabor Kiss-Vamosi
637b706ddc
perf(draw) reimplement circle drawing algorithms (#2374)
* perf(draw) reimplement circle drawing algorithms

Imporve the speed of circle drawing
Add circle draw caching
Various other speed improvements

* docs describe how to use masks

* fix(draw) add missing GC root usage
2021-07-27 19:16:00 +02:00
guoweilkd
e23701e2c2
example(anim) add demo to use cubic-bezier (#2393)
* animation:add demo to use cubic-bezier

* fix minor fixes on layout and chart

Co-authored-by: guoweilkd <guowei15@xioami.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-27 19:14:44 +02:00
_VIFEXTech
202cf1c8cb
perf(anim_timeline) add lv_anim_timeline_stop() (#2411)
* add anim_timeline

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

* add anim_timeline

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

* add lv_anim_timeline.c to lv_misc.mk

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

* LV_ANIM_TIMELINE_END uses global variables to replace macros, lv_anim_timeline_set_progress() adds user_data, act_time uses int32_t type

* solve the problem of uninitialized variable and act_time comparison

* add LV_ANIM_TIMELINE_CUSTOM_EXEC option

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

* add LV_ANIM_TIMELINE_CUSTOM_EXEC in lv_conf_internal.h

* redesign lv_anim_timeline

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

* add missing LV_USE_USER_DATA

* remove set_progress, update doc

* update workflow files

* Remove lv_example_anim_timeline_2.c and LV_ANIM_TIMELINE_CUSTOM_EXEC, update lv_anim_timeline_1.c example

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

* fix warning

* fix(anim_timeline) heap use after free

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

* fix(docs) wrong spelling of words in pictures

* perf(anim_timeline) add lv_anim_timeline_stop()

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

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-27 14:30:36 +02:00
Gabor Kiss-Vamosi
c28c146310 fix(meter) fix inner mask usage
fixes #2407
2021-07-27 13:21:19 +02:00
_VIFEXTech
e258e78f21
fix(docs) wrong spelling of words in pictures (#2409)
* add anim_timeline

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

* add anim_timeline

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

* add lv_anim_timeline.c to lv_misc.mk

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

* LV_ANIM_TIMELINE_END uses global variables to replace macros, lv_anim_timeline_set_progress() adds user_data, act_time uses int32_t type

* solve the problem of uninitialized variable and act_time comparison

* add LV_ANIM_TIMELINE_CUSTOM_EXEC option

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

* add LV_ANIM_TIMELINE_CUSTOM_EXEC in lv_conf_internal.h

* redesign lv_anim_timeline

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

* add missing LV_USE_USER_DATA

* remove set_progress, update doc

* update workflow files

* Remove lv_example_anim_timeline_2.c and LV_ANIM_TIMELINE_CUSTOM_EXEC, update lv_anim_timeline_1.c example

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

* fix warning

* fix(anim_timeline) heap use after free

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

* fix(docs) wrong spelling of words in pictures

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-27 12:26:38 +02:00
Gabor Kiss-Vamosi
4dba8df2a1 fix(log) fix warning for empty log macros
Fixes #2408
2021-07-27 11:03:22 +02:00
Amir Gonnen
4db0071f05
feat(obj) add lv_is_initialized (#2402)
While it's possible to try initialize LVGL after it is already initialized, it warns 'lv_init: already inited' in such case. Therefore it is useful to be able to check on runtime whether LVGL was initialized or not before calling lv_init().
2021-07-24 10:27:16 -04:00
EnricoLusaEGF
105bf24318
fix(chart) fixed point-following cursor during vertical scroll in charts (#2400) 2021-07-23 15:55:43 +02:00
Yin Zhong
1f255b7a0c
feat(obj) Backport keypad and encoder scrolling from v7 lv_page to v8 lv_obj (#2390)
* support scrolling scrollable but non-editable objects thru keypad / encoder

* update doc on `lv_obj` scrolling behavior by arrow keys
2021-07-23 14:55:13 +02:00
Gabor Kiss-Vamosi
6d8799fbbf
Update textarea.md 2021-07-23 13:52:13 +02:00
EnricoLusaEGF
1b7e2b5103
fix(chart) fixed cursor positioning with large Y rescaling without LV_USE_LARGE_COORD (#2399) 2021-07-23 13:43:21 +02:00
Gabor Kiss-Vamosi
71a10e4ecd fix(example) adjust the object sizes in lv_example_anim_timeline_1() 2021-07-23 13:40:42 +02:00
guoweilkd
7f9297879f
fix(grid.h) typos (#2395)
* fix(grid.h) typos

* grid:replace LV_COORD_MAX use LV_GRID_TEMPLATE_LAST

Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-23 11:52:09 +02:00
Yin Zhong
4d43b99702
doc(table) update doc on cell merging (#2397)
See https://github.com/lvgl/lvgl/issues/2276#issuecomment-884776230
2021-07-23 09:49:59 +02:00
Gabor Kiss-Vamosi
9ce2c7702d
Update index.rst 2021-07-22 21:56:00 +02:00
_VIFEXTech
bfab70802e
fix(anim_timeline) heap use after free (#2394) 2021-07-22 15:19:08 +02:00
EnricoLusaEGF
95bf16952e
docs(layout) add internal padding paragraph to grid and flex layout p… (#2392)
* docs(layout) add internal padding paragraph to grid and flex layout pages

* docs(layout) inlined bulletpoints
2021-07-22 11:36:40 +02:00
Gabor Kiss-Vamosi
533066e6ac docs(obj) add comment lv_obj_get_x/y/width/height about postponed layout recalculation 2021-07-21 11:03:56 +02:00
Uli Raich
c6e97162d1
added example lv_example_anim_timeline_1.py (#2387) 2021-07-21 10:37:22 +02:00
Amir Gonnen
55ef1826fc
fix(snapshot) add missing import on MicroPython example (#2389) 2021-07-20 19:37:00 -04:00
Gabor Kiss-Vamosi
e3f0b85623 Merge branch 'master' of https://github.com/lvgl/lvgl 2021-07-19 15:35:47 +02:00
Gabor Kiss-Vamosi
34b8cd9c12 fix(chart) fix sending LV_EVENT_DRAW_PART_BEGIN/END for the cursor 2021-07-19 15:35:34 +02:00
Neo
c98c8252ea
feat(snapshot) add API to take snapshot for object (#2353)
* Fix image zooming causes unexpected object size.

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>

* add lv_snapshot_take API.

* fix(img) invalidate size and layout on zoom and angle change

* fix(img) not self-repeating under some zoom level.

* fix(snapshot) fix to keep the original position

* Move various set_px_cb_xx functions to lv_hal_disp.c

* add snapshot API to store image to provided buffer

* minor fixes and refactoring

* Move snapshot source to extra/others/snapshot.

1. Update parameter buff to buf.
2. Add macro to disable lv_snapshot, enabled by default.

* docs(others) add the others folder with snapshot.md

* docs(snapshot) added doc and example for snapshot.

1. Update doc snapshot.md
2. Add example lv_example_snapshot_1 to folder examples/others/snapshot
3. Update lv_conf_template.h and lv_conf_internal.h
4. Remove lv_snapshot.c from lv_misc.mk
5. Add others to index.md

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>

* add micropython example for snapshot

Co-authored-by: Xu Xingliang <xuxingliang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-19 14:46:28 +02:00
_VIFEXTech
690b3546d6
feat(anim) add anim timeline (#2309)
* add anim_timeline

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

* add anim_timeline

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

* add lv_anim_timeline.c to lv_misc.mk

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

* LV_ANIM_TIMELINE_END uses global variables to replace macros, lv_anim_timeline_set_progress() adds user_data, act_time uses int32_t type

* solve the problem of uninitialized variable and act_time comparison

* add LV_ANIM_TIMELINE_CUSTOM_EXEC option

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

* add LV_ANIM_TIMELINE_CUSTOM_EXEC in lv_conf_internal.h

* redesign lv_anim_timeline

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

* add missing LV_USE_USER_DATA

* remove set_progress, update doc

* update workflow files

* Remove lv_example_anim_timeline_2.c and LV_ANIM_TIMELINE_CUSTOM_EXEC, update lv_anim_timeline_1.c example

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

* fix warning

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-19 13:58:58 +02:00
Neo
e5e93e24b4
fix(disp) Fix assert failure in lv_disp_remove (#2382)
Co-authored-by: Xu Xingliang <xuxingliang@xiaomi.com>
2021-07-19 12:24:22 +02:00
Drew Hoener
d041191ff3
feat(span) Add missing spangroup functions (#2379) 2021-07-18 21:44:27 -04:00
embeddedt
706f81e586
docs(indev) clarify purpose of continue_reading flag 2021-07-18 08:55:34 -04:00
Yin Zhong
5a3876e9e6
docs(porting) fix indev example to remove v7 bool return (#2381)
update indev doc example to remove v7 `return false` and fix return type
2021-07-18 08:54:33 -04:00
Gabor Kiss-Vamosi
c386110e23 docs update changelog 2021-07-16 21:57:54 +02:00
Neo
fe461caf7e
feat(img) add img_size property (#2284)
* Fix image zooming causes unexpected object size.

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>

* fix(img) invalidate size and layout on zoom and angle change

* fix(img) not self-repeating under some zoom level.

* minor fixes and refactoring

* docs(img) add img_size

Co-authored-by: Xu Xingliang <xuxingliang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-16 21:05:49 +02:00
Gabor Kiss-Vamosi
33ba7225f5 fix(obj) fix size invalidation issue on padding change
If a style properties with LV_STYLE_PROP_LAYOUT_REFR is applied
on a not MAIN part it might effect the size if the size is LV_SIZE_CONTENT.
So check it in lv_obj_refresh_style()
2021-07-16 20:35:31 +02:00
Gabor Kiss-Vamosi
1c3ecf1cc1 add basic patch release script 2021-07-16 20:35:31 +02:00
Gabor Kiss-Vamosi
1626a0c029 start to implement release/patch 2021-07-16 20:35:31 +02:00
Gabor Kiss-Vamosi
0838f1296b
Update release.yml
Filter for normal version tags (e.g. v.5.6.7 but not v5.6.7-dev)
2021-07-16 17:51:39 +02:00
guoweilkd
84664fc2ca
fix(span) modify the underline position (#2376)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
v8.0.3-dev
2021-07-16 14:31:58 +02:00