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
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
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
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
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
Themba Dube
2122583ec2
style fix usage of clang-format directives
...
We do not use clang-format anymore, so the directive has been removed from most headers.
lv_conf_template.h is untouched as a convenience for downstream projects which still use the tool.
Fixes #2441
2021-08-07 16:06:40 -04:00
Gabor Kiss-Vamosi
50ea6fb3fe
fix(msgbox) return the correct pointer from lv_msgbox_get_text
...
fixes #2436
2021-08-06 19:20:44 +02:00
Gabor Kiss-Vamosi
a8427915c7
perf(draw) ignore masks if they don't affect the current draw area
2021-08-05 17:39:59 +02:00
Gabor Kiss-Vamosi
4f9a037b93
fix warning and remove test code from an example
2021-08-03 16:37:25 +02:00
Gabor Kiss-Vamosi
7672847ce3
fix(bidi) fix the handling of LV_BASE_DIR_AUTO in several widgets
...
fixes #2421
2021-08-03 16:03:07 +02:00
Gabor Kiss-Vamosi
5b3d3dc8b3
perf(draw) reimplement rectangle drawing algorithms
...
No functionalty has changed only make them more readable and faster.
2021-08-02 15:45:14 +02:00
Gabor Kiss-Vamosi
f61b2ca455
Revert "fix(indev) focus on objects on release instead of press"
...
This reverts commit 76a8293375 .
Revert because it breaks the drop down list.
If the dropdown list is opened and the parent is scrolled
the dropdown is not defocused and not closed.
Fixes #2417
2021-08-02 14:33:43 +02:00
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
guoweilkd
65415d3f68
docs(chart) typos ( #2427 )
2021-08-02 11:51:18 +02: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
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
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
_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
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
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
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
_VIFEXTech
bfab70802e
fix(anim_timeline) heap use after free ( #2394 )
2021-07-22 15:19:08 +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
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