1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-02-04 07:13:00 +08:00

4377 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
5369d7d473
arch(conf, api) refactor lv_conf and some API (#3501)
Kconfig and MicroPython config is not updated yet.


* start to refactor lv_conf.h

* further mem refactoring

* create lv_mem_builtin.c/h

* update lv_conf_internal.h

* add lv_strlen and lv_strncpy

* rename LV_DRAW_COMPLEX to LV_USE_DRAW_MASK

* update lv_conf_template

* minor fix
2022-07-19 13:31:42 +02:00
Gabor Kiss-Vamosi
c03d817192 fix(animing): fix incorrect animation end value
fixes https://forum.lvgl.io/t/how-to-stop-the-animation-image-at-the-last-image/9374
2022-07-18 20:07:47 +02:00
Xiang Xiao
d44de4d311
chore(format): add LV_FORMAT_ATTRIBUTE to lv_table_set_cell_value_fmt (#3500)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:51:01 +02:00
_VIFEXTech
d11171d2bd
fix(obj): reset all input devices when disable obj (#3483)
* fix(obj): reset all input devices when disable obj

* remove const

* Replace lv_obj_reset_input with lv_indev_reset

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-15 14:21:11 +02:00
martaaay
11602976e9
fix(btnmatrix): tapping just outside a button in a button matrix can cause the last tapped button to repeat. (#3487) 2022-07-15 08:03:05 +02:00
Gabor Kiss-Vamosi
a2ebfb2571 fix(arc): fix arc knob invalidation in SYMMETRICAL mode
fixes #3465
2022-07-14 17:19:23 +02:00
Nuno Goncalves
891aee1e8e
fix(chart): fix unhandled branch (#3479)
If chart->type != LV_CHART_TYPE_LINE and != LV_CHART_TYPE_SCATTER and != LV_CHART_TYPE_BAR return sane values

Fixes GCC warning p_out->x may be used uninitialized in this function

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>

Co-authored-by: Nuno Goncalves <nunog@fr24.com>
2022-07-13 20:57:39 +02:00
Gabor Kiss-Vamosi
5c5e15b629 chore: fix warning related to #3472 2022-07-13 17:48:08 +02:00
Gabor Kiss-Vamosi
b9a2977711 fix(style): make the style parameter const in lv_obj_add/remove_style functions
fixes #3472
2022-07-13 17:02:26 +02:00
Nuno Goncalves
7a8a643dff
fix: GCC warning cell_area.x1 and x2 may be used uninitialized in this function (#3478)
While the code is correct the rtl depedent initialization can't be tracked by GCC

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>

Co-authored-by: Nuno Goncalves <nunog@fr24.com>
2022-07-13 17:00:45 +02:00
Xiang Xiao
ea1d670f06
chore(make): order the source files in *.mk (#3468)
* chore(make): sync component.mk with the last directory layout

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* chore(make): order the source files in *.mk

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-13 16:51:52 +02:00
_VIFEXTech
aafa32aaeb
fix(bar): fix division by 0 (#3463)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-11 14:19:15 +02:00
Xiang Xiao
0e367d0a76
chore(config): fix the style issue in lv_conf_template.h (#3469)
* chore(config): fix the style issue in lv_conf_template.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* chore(format): don't exclude lv_conf_internal.h from code-format.cfg

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-11 14:06:31 +02:00
Gabor Kiss-Vamosi
56a5742c77 fix(refr): fix lv_refr_get_top_obj
related to https://forum.lvgl.io/t/how-to-speed-up-the-v8-version/9091/21
2022-07-09 14:37:19 +02:00
Gabor Kiss-Vamosi
0eab027a33 fix(slider): fix knob drawing in symmetrical mode 2022-07-08 20:53:31 +02:00
Yobe Zhou
8f9c84420e
feat(ime_pinyin): add API to use 9-key numeric keypad (#3460)
Like the 9-key Pinyin input mode, it is customized to adapt to the small screen.

Co-authored-by: 100ask <team100ask@outlook.com>
2022-07-07 21:10:30 +02:00
Gabor Kiss-Vamosi
ecc8058641 fix(fonts): make built-in fonts work with v9 2022-07-07 09:05:40 +02:00
100ask
810f59c9ee
fix(ime_pinyin): fix 4 problems in ime-pinyin 9-key input mode (#3455)
1. Fix the problem of inputting Pinyin syllable AAA but actually getting BB result.
2. Fix the problem that the last letter in the Pinyin syllable cannot be deleted by the delete key in the 9-key input mode.
3. Fix array lv_btnm_def_pinyin_k9_map and array default_kb_ctrl_k9_map out of bounds.
4. Fix some other problems.
2022-07-07 07:01:11 +02:00
100ask
10e0b7a1ad
feat(ime_pinyin): add API to support 9-key input mode (#3447)
* feat(ime_pinyin): add API to support 9-key input mode

* some optimizations for lv_ime_pinyin

* Update lv_example_ime_pinyin_2.c

* Update src/extra/others/ime/lv_ime_pinyin.h

Co-authored-by: YobeZhou <smilezyb@163.com>
Co-authored-by: Yobe Zhou <33565334+YobeZhou@users.noreply.github.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-07-06 09:04:53 +02:00
_VIFEXTech
73114028d3
feat(font): add font placeholder drawing configuration (#3446)
* feat(font): add font placeholder drawing configuration

* Turn on placeholder by default in Kconfig

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

* When disabled LV_USE_FONT_PLACEHOLDER set box_w=0

* Remove placeholder_font to get glyphs

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

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-05 16:42:46 +02:00
Gabor Kiss-Vamosi
5a06fce472 perf(draw): speed up non normal blend modes 2022-07-05 14:54:08 +02:00
Gabor Kiss-Vamosi
cbbace4ca5 chore: fix warning 2022-07-05 09:30:49 +02:00
Man, Jianting (Meco)
fb624e594f
fix(draw): conflict with external ALIGN define (#3336)
ALIGN is a common name, so that easily conflict with other components
2022-07-05 09:01:38 +02:00
Gabor Kiss-Vamosi
13c99fc4b6 fix(refr): fix memory write out of bounds issue 2022-07-05 08:58:03 +02:00
_VIFEXTech
23c8a91a11
feat(fsdrv): add posix lseek() error checking (#3444)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-04 15:03:49 +02:00
jadonmmiller
a06e11478e
fix(arc): fix bug with LV_ARC_MODE_REVERSE (#3417) (#3418) 2022-07-04 13:06:26 +02:00
Mariotaku
a1326dc31a
fix(fragment): memory leak of fragments #3438 (#3442) 2022-07-04 12:48:27 +02:00
_VIFEXTech
d43f10a180
feat(misc): add asynchronous call function cancellation function (#3439)
* feat(misc): add asynchronous call function cancellation function

* Update documentation

* Remove useless comments

* remove continue

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-03 12:31:17 +02:00
Gabor Kiss-Vamosi
7ada1301c2 fix(btnmatrix): fix extra draw size calculation to not clip shadow 2022-07-03 11:32:39 +02:00
Gabor Kiss-Vamosi
77d726efb2 fix(draw): clip the bg img to the rectangle's area in lv_draw_sw_rect 2022-07-03 11:32:39 +02:00
Gabriel Wang
922108dbbe
chore: cmsis pack monthly update (#3435)
* update lv_gpu_arm2d to support  LV_IMG_CF_RGB565A8

* feat(porting) minor update

* feat(cmsis-pack): monthly update for June

* Update LVGL.pidx

* fix(draw): solve memory leaking issue

* Update lv_draw_sw_layer.c

* Update LVGL.lvgl.1.0.5.pack

* Update LVGL.lvgl.1.0.5.pack
2022-07-01 20:20:48 +02:00
Gabriel Wang
a2bd96023f
fix(draw): solve memory leaking issue (#3437)
* fix(draw): solve memory leaking issue

* Update lv_draw_sw_layer.c

* Revert "Update lv_draw_sw_layer.c"

This reverts commit 4ca1ab303c1e0297529f7eb662ea4ee7f24b10fa.

* Revert "fix(draw): solve memory leaking issue"

This reverts commit 6f36e1a8c324abf79423b83bea9611f8cd59664d.

* fix(draw): free layer ctx when layer_init returns NULL

* Update lv_draw_layer.c
2022-07-01 14:27:05 +02:00
Gabor Kiss-Vamosi
25ce6e3ae9 fix(scroll): do not fire scroll begin/end event on every scroll step
fixes: #3436
2022-07-01 13:55:44 +02:00
Gabor Kiss-Vamosi
e5c11f1f68 fix(indev): scroll_ throw_vect cannot converge to 0 when vect is negative
fixes: #3431
2022-07-01 10:24:29 +02:00
Gabor Kiss-Vamosi
4572a0c6c9 fix(chart): fix misaligned horizontal tick lines on bar charts
fixes: https://forum.lvgl.io/t/how-to-make-the-major-ticks-center-the-bars-of-the-chart/9244/2
2022-07-01 10:12:14 +02:00
Gabor Kiss-Vamosi
6acbdaa53d fix(style): fix using width for both width and height in radius transition
fixes: #3427
2022-06-28 17:32:12 +02:00
Yobe Zhou
92f1f9c0cc
feat(ime_pinyin): add API to use Pinyin IME(Chinese input) (#3408)
* feat(pinyin_ime): add API to use Pinyin IME(Chinese input)

1.Low resource usage
2.Support custom thesaurus
3.Support custom styles (Candidate panel, keyboard)
4.Support simple spelling

* fix(ime_pinyin): fix several problems of ime_pinyin

1. Change lv_pinyin_ime to lv_ime_pinyin
2. Add lv_pinyin_ime_set_keyboard interface
3. Add lv_ime_pinyin configuration in Kconfig, src/lv_conf_internal.h

* refactor(ime_pinyin): improve coding specification

* feat(ime_pinyin): add simple Pinyin IME example

* docs(ime_pinyin): Add ime_pinyin documentation

* Delete settings.json

* Update dictionary based on simsun

* Delete lv_font_source_han_sans_normal_16.c

* Update lv_example_ime_pinyin_1.c

* Update ime_pinyin.md

add Chinese translation document

* Update lv_ime_pinyin.c

* Update lv_ime_pinyin.c

* Update lv_ime_pinyin.h

* Update lv_ime_pinyin.c

* Update lv_example_ime_pinyin_1.c

* Update lv_conf_internal.h

* Update lv_ime_pinyin.c

* Update lv_ime_pinyin.c

Co-authored-by: 100askTeam <team100ask@outlook.com>
2022-06-24 14:38:24 +02:00
Eugene Yaremenko
4056a15ecc
fix(gridnav) correct logic in find_last_focusable (#3423) 2022-06-23 10:14:33 -04:00
Gabor Kiss-Vamosi
afaa8c9300 demo(benchmark): add LV_DEMO_BENCHMARK_RGB565A8 option
fixes #3379
2022-06-23 11:51:20 +02:00
Gabor Kiss-Vamosi
e651383688 fix(dropdown): fix scrolling when options are CENTER aligned
fixes: https://forum.lvgl.io/t/add-users-style-to-dropdown-list/9144
2022-06-20 08:14:45 +02:00
Gabor Kiss-Vamosi
0255c6dd39 fix(meter): improve the precision of tick line drawing
fixes #3361
2022-06-19 11:21:27 +02:00
Gabor Kiss-Vamosi
cbff8e83e5 fix(draw): fix transformations on subdivided areas 2022-06-15 23:33:20 +02:00
Mariotaku
f575935180
fix(sdl): add transformation support for the SDL backend (#3403)
* sdl transform wip

* sdl transform wip

* working transform (scale, rotate)

* fixed transform with masks

* fixing includes

* removed lv_obj_t references in draw backend

* update the API to work with SW layers too

* update lv_conf_internal.h

* makefile fixes

* updated sdl transform implementation

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-06-15 10:36:47 +02:00
张杨
22627c47ce
fix(bmp): fix with LV_COLOR_16_SWAP (#3412)
* Update lv_bmp.c

fix bug. When the bmp is 16 bit depth, the picture is not displayed properly due to no swap bytes

* Update lv_bmp.c

* Update lv_bmp.c

* format

* using unsigned int
2022-06-14 12:23:04 +02:00
pete-pjb
60ebd25d3d chore(tabview) fix format - (run python script this time!) 2022-06-13 13:07:49 +01:00
pete-pjb
3e56e96922 chore(tabview) fix format. 2022-06-13 13:04:44 +01:00
pete-pjb
11b708ed95 chore(tabview) correct format. 2022-06-13 13:00:23 +01:00
pete-pjb
2c9695afb4 feat(tabview) add API to rename tab.
https://github.com/lvgl/lvgl/issues/3407#issue-1265916615
2022-06-13 12:56:37 +01:00
embeddedt
9a48de0f8b
feat(style) add 'inherit' and 'initial' CSS properties (#3390)
Fixes #3086
2022-06-09 20:20:34 -04:00
Mariotaku
018a8cfdac
fix(sdl): fix LRU, reported in #3402 (#3404)
* fix for #3402

* fixed unsupported type
2022-06-08 11:01:19 +02:00