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

549 Commits

Author SHA1 Message Date
Douglas Healy
3b7411893f
fix(examples) resolve string formatting compiler warnings (#3654) 2022-09-04 09:47:38 -04:00
Amir Gonnen
33d8ca779d
feat(examples) adjust micropython examples to use lv_png (#3639) 2022-08-29 17:12:37 -04:00
Uli Raich
fd331980bb
example(ffmpeg): replaced av_init_packet by av_packet_alloc to get rid of deprecation … (#3634) 2022-08-28 19:30:02 +02:00
Amir Gonnen
75fabab38a
fix(imgfont) add user_data argument to callback (#3630) 2022-08-27 09:31:33 -04:00
Gabor Kiss-Vamosi
327dbb6031 feat(msg): allow using variable address as msg_id 2022-08-25 14:20:43 +02:00
Derek Carter
bdd520e00c
fix(img): lv_img_buf_get_img_size miscalculation for 1/2/4 it images (#3611) 2022-08-24 10:05:48 +02:00
Gabor Kiss-Vamosi
4519a874d7 fix(canvas): fix clipéping on transformation
fixes: #3545
2022-08-07 21:09:46 +02:00
Amir Gonnen
7a23be73ab
fix(examples) adjust constant names in Micropython examples (#3532)
Due to spurious enums (https://github.com/lvgl/lv_binding_micropython/issues/199) wrong constant names were generated. Fix these constants.
2022-07-30 11:10:56 -04:00
Amir Gonnen
cd11476592
fix(msg): make it work with Micropython (#3488)
* fix(msg): fill callback prototype

lv_msg_subscribe_cb_t does not follow the callback conventions.
Remove unused void* argument to fix that.

* fix(msg):  move subs_ll to gc roots

* fix(msg): rename subsribe to subscribe

* fix(msg): update docs

* fix(msg): Add example_1

* fix(msg): fix include paths

* fix(mgs): Fix python example typo and comments

* fix(msg):  LV_EVENT_MSG_RECEIVED event code
2022-07-27 09:42:48 +02:00
Gabor Kiss-Vamosi
c6f76ec755 example(freetype): Update the Micropython example to use the Lato font 2022-07-24 20:45:17 +02:00
Gabor Kiss-Vamosi
7354b2eacb example(freetype): replace the arial font with lato to avoid licensing issues
fixes https://github.com/zephyrproject-rtos/zephyr/issues/48111
2022-07-23 20:40:22 +02:00
Gabor Kiss-Vamosi
b9adb0a048 example: fix MicroPython examples 2022-07-21 22:21:43 +02:00
Gabor Kiss-Vamosi
e42f01a38a fix(make): update lvgl.mk and remove unnecessary mk files 2022-07-20 12:10:00 +02:00
Xiang Xiao
9ed5b3fe06
Sync up Kconfig with lv_config_template.h (#3508)
* fix(config): remove LV_COLOR_16_SWAP related stuff

follow commit 5369d7d473446a8953f2ea37b9116da918d3c8d2

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

* fix(config): remove LV_COLOR_SCREEN_TRANSP related stuff

follow commit 5369d7d473446a8953f2ea37b9116da918d3c8d2

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-20 11:29:34 +02:00
Gabor Kiss-Vamosi
9add9acadb refactor(style): add width and height paramaters to style_size 2022-07-19 15:47:00 +02:00
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
023279f126 chore: fix warning 2022-07-18 17:51:46 +02:00
Gabor Kiss-Vamosi
e2771db8ce example(keyboard): add an example to show how to set a new map
fixes #3490
2022-07-18 17:50:35 +02:00
Xiang Xiao
7eff407fea
chore(format): order the header file and function prototype (#3492)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 15:29:04 +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
Mariotaku
a1326dc31a
fix(fragment): memory leak of fragments #3438 (#3442) 2022-07-04 12:48:27 +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
100ask
6ff164f87d
example(ime_pinyin): improved lv_example_ime_pinyin_1 (#3428) 2022-06-29 09:58:34 +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
Gabor Kiss-Vamosi
6b2eac1dd7 example(btnmatrix): update lv_example_btnmatrix_2 to expicitly check which part is drawn
related to https://forum.lvgl.io/t/style-messagebox-buttons-causes-outline-around-all-buttons-in-the-button-matrix/9170
2022-06-23 13:26:31 +02:00
KyleParker-Gongyuan
8d8aaed0e3
fix(examples) correct comment in slider example (#3419)
The label is above the slider in this example, not below it.
2022-06-21 08:50:55 -04:00
Gabriel Wang
ca9aff6119
cmsis pack monthy update for June (#3413)
* fix(benchmark): remove duplicated output in report log

* doc(benchmark): update the method for performance analysis

* feat(cmsis-pack): v1.0.5-alpha1

* fix(template): use consistent resolution information

* Update LVGL.lvgl.1.0.5-alpha1.pack
2022-06-14 13:03:50 +02:00
Lazar Chervenkov
03c43d95ad
example(imgfont): fix lvgl.h include path (#3405)
When LV_LVGL_H_INCLUDE_SIMPLE is not defined, the path to the lvgl.h gives a compilation error. I fixed the path
2022-06-08 11:08:54 +02:00
Gabriel Wang
c9fa4ef0fc
feat(porting): add flushing control to the template (#3384)
* feat(porting): add flushing control to the template

* Update examples/porting/lv_port_disp_template.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update examples/porting/lv_port_disp_template.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update examples/porting/lv_port_disp_template.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update lv_port_disp_template.h

* use consistent comment

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-06-03 15:08:08 +02:00
Gabor Kiss-Vamosi
7bb09e3580 example(span): avoid ambiguous meaing
fixes: https://github.com/lvgl/lvgl/pull/2227#issuecomment-1131193923
2022-05-19 13:01:28 +02:00
embeddedt
71d535defd
fix(examples) use type-safe function for retrieving event param
Fixes #3364
2022-05-18 13:58:35 -04:00
Gabor Kiss-Vamosi
930115edbb revert example 2022-05-16 17:15:36 +02:00
Gabor Kiss-Vamosi
b773330234 fix conflicts 2022-05-16 17:15:36 +02:00
Gabor Kiss-Vamosi
ac2e2f132e perf(layer): cache the layer_type
fixes #3334
2022-05-07 22:01:28 +02:00
Gabor Kiss-Vamosi
a76bb70a79 feat(arc): add lv_arc_align_obj_to_angle and lv_arc_rotate_obj_to_angle 2022-04-27 14:24:45 +02:00
Gabor Kiss-Vamosi
318146a2c2 feat(draw): support transforming widgets and improfe sw transform
For details see: https://docs.lvgl.io/master/overview/style.html
2022-04-26 10:45:12 +02:00
Gabor Kiss-Vamosi
1b219654db chore: code formatting and fix warnings 2022-04-06 22:18:30 +02:00
Gabor Kiss-Vamosi
79a29d749d feat(msg): add publisher-subscriber messaging 2022-04-06 22:12:24 +02:00
Xiang Xiao
2e80590b3f
chore(make): add lv_ prefix to examples/examples.mk and src/extra/extra.mk (#3187)
follow other make file convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 11:27:08 +01:00
Xiang Xiao
4c4f954059
chore(style): remove the trailing space from all source files (#3188)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 11:25:51 +01:00
guoweilkd
7713327d61
feat(font): add imgfont - can be used to add emojis to label/span (#3160)
* feature(font): draw img in label/span

* add to tests

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-03-17 10:18:14 +01:00
ckielstra
f79e2838cb
chore(doc): spelling (#3172)
* Spelling: 'an unicode' -> 'a unicode'

* fix(changelog) spelling

* Remove double spaces

* Spelling
2022-03-16 10:19:19 +01:00
HX2003
44f6f75238
chore(gridnav): fix broken links for gridnav (#3159) 2022-03-11 10:57:06 +01:00
Carlos Diaz
0a5c5465d2
chore(docs): fix trailing whitespaces in files (#3133) 2022-03-01 13:52:45 +01:00
Andres O. Vela
340d45cfa9
feat(label): added animation style property to apply it to circular scrolling animation of label widget (#3128)
* feat(label): added animation style property to apply it to circular scrolling animation of label widget

Added an animation style property to be used as animation template for different use cases in different widgets.
This commit implements using this property to set the start and repeat delay of the circular scrolling animation of the label widget.

Closes #3097

* fix(label): changed animation style property's var_type to `const lv_anim_t *`

* example(label): added example showing how to customize circular scrolling animation

* chore(label): ran code-format.py and added missing function prototype to lv_example_widgets.h
2022-02-25 11:54:27 +01:00
GoT
efb9c5cc52
chore(fs): wrong parameters doc for fs_write in lv_port_fs_template.c (#3109)
* Wrong parameters doc for fs_write

Wrong parameters doc for fs_write in lv_port_fs_template.c

* Fix wrong code block for fsdrv files and lv_fs.h
2022-02-21 16:14:06 +01:00
Gabor Kiss-Vamosi
4a766c516d example(slider): make lv_example_slider_3 work with dark theme too
fixes: #3094
2022-02-16 14:04:05 +01:00
embeddedt
9771050b99
chore(format) add formatting for examples & demos, merge test config 2022-02-13 13:59:17 -05:00
Mariotaku
e7736f2c32
feat(fragment): add fragment manager (a UI Controller concept) (#2940)
* adding lv_obj_controller

* adding examples for lv_obj_controller

* added some docs

* formatted code

* updated controller docs

* updated controller docs

* updated sample controller field

* changed lv_controller_manager_parent to lv_controller_manager_get_parent

* updated unmanaged controller creation/deletion

* renamed lv_controller_manager_t

* rename: controller -> fragment

* formatted code

* Update examples/others/fragment/lv_example_fragment.h

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update src/extra/others/fragment/lv_fragment.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update src/extra/others/fragment/lv_fragment.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update src/extra/others/fragment/lv_fragment.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* code cleanup

* fragment creation rework

* (wip) fragment manager

* (wip) fragment manager

* refactoring fragment

* lifecycle fixes

* updated fragment event callback

* exposed states of fragment

* added some docs

* updated lv_fragment_managed_states_t name

* updated docs

* updated docs

* updated lv_fragment_manager_dispatch_event docs

* removed msgbox fragment

* updated fragment docs

* updated fragment docs

* updated docs

* updating examples

* fixed example

* reformatted code

* fixed obj_created set timing

* simplified fragment

* improved fragment view del assertion

* fixed a typo

* fixed event_cb check in lv_obj_remove_event_cb_with_user_data

* fixing fragment obj assertion

* regenerated config

* fixed fragment examples

* fixed fragment examples

* added missing examples

* updated docs

* fragment api cleanup

* rename fragment struct names

* added missing param doc

* enabled test for 32bit build

* feat(porting): add a macro lv_run_timer_handler_in_period to simplify porting (#3063)

* feat(porting): add a macro lv_run_timer_handler_in_period to simplify porting

* feat: update helper function and doc

* doc(porting): update function names

* revise to the original os.md

* fix: fix typo

* fix: mitigate warnings

* chore: fix code formatting

* fix(fsdrv): replacing sprintf with lv_snprintf for safety (#3079)

* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(conf) mismatched macro judgment

* feat(fsdrv) replacing sprintf with lv_snprintf for safety

* feat(fsdrv) update stdio and win32

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>

* fix warnings

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Co-authored-by: Gabriel Wang <embedded_zhuoran@Hotmail.com>
Co-authored-by: _VIFEXTech <1290176185@qq.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-02-11 12:43:08 +01:00
Amir Gonnen
c7a414bfc6
fix(micropython) update examples for new API (#3059)
Related: https://github.com/lvgl/lv_binding_micropython/issues/202
2022-01-29 12:39:11 -05:00