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

8233 Commits

Author SHA1 Message Date
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
qinshijing
b9bad8272e
feat(lv_label): override animation properties when scrolling (#3561) (#3582)
Signed-off-by: qinshijing <qinshijing@xiaomi.com>
Co-authored-by: qinshijing <qinshijing@xiaomi.com>
2022-08-24 09:46:04 +02:00
_VIFEXTech
b98ccf94f8
fix(draw_sw): fix image cache to access the freed stack space (#3584)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-08-23 15:27:00 +02:00
Gabor Kiss-Vamosi
50be1859de fix(ime_pinyin): fix warnings and add it to build tests 2022-08-23 13:11:12 +02:00
Pieter De Gendt
49912d8533 fix(style): Use compile time prop_cnt for const styles 2022-08-23 12:37:18 +02:00
totoro
200440fa57
fix(group): be sure the default group pointer points to a proper place (#3605) 2022-08-23 12:20:21 +02:00
Mariotaku
2a7f63e76f
fix(sdl): clear streaming/target texture with FillRect (#3608) 2022-08-23 10:03:10 +02:00
ckielstra
c069cf18fb
chore(doc) fix spelling in source comments and add missing parameter descriptions (#3607) 2022-08-22 09:21:25 -04:00
Roman Romanchuk
118a3bee76
docs: fix broken links in documentation (#3598) 2022-08-19 11:35:24 -04:00
Gabor Kiss-Vamosi
878e3d3334 feat(roller): remove LV_ROLLER_INF_PAGES and calculate it dynamically
fixes #3214
2022-08-19 14:40:08 +02:00
_VIFEXTech
bb7feb232f
fix(obj): fix crash of lv_obj_move_foreground/background when the parent of obj is NULL (#3577)
* fix(obj): fix crash of lv_obj_move_foreground/background when the parent of obj is NULL

* decrease LOG level

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-08-19 14:24:37 +02:00
Roman Romanchuk
778d872409
chore: change image tags in demo README to GitHub markdown (#3596) 2022-08-19 12:28:00 +02:00
Gabor Kiss-Vamosi
5550d61eef fix(group): be sure obj is removed from its current group in lv_group_add_obj
fixes #3593
2022-08-19 12:02:14 +02:00
Carlos Diaz
430574ed5f
chore(label) make selection interface naming consistent (#3595) 2022-08-18 18:44:18 -04:00
tvanfossen-bissell
956c47f6a7
feat(arc) add rotation getter (#3587)
Co-authored-by: tvanfossen <vanfosst@gmail.com>
2022-08-17 14:27:31 -04:00
Mariotaku
c9487f7924
fix(sdl) transformation with alpha (#3576) 2022-08-17 08:52:53 -04:00
Carlos Diaz
b878a1aed9
ci(test): unit tests for label widget (#3529)
* test(label) Add initial test for constructor

* test(label) Add tests for recolor

* cleanup(label): lv_label_event

* test(label) set text tests

* test(label) Add tests for lv_label_get_letter_pos

* chore(label) Const where possible in lv_label_get_letter_pos

* test(label) Add tests for lv_label_is_char_under_pos

* chore(label) Add const when possible to lv_label_is_char_under_pos

* test(label) Add simple test for lv_label_cut_text

* chore(label) Cleanup lv_label_revert_dots a bit

* test(label) Make tests pass on Build OPTIONS_MINIMAL_MONOCHROME

* test(label) Initial tests for lv_label_get_letter_on

* chore(label) Introduce calculate_x_coordinate helper

* chore(label) Use calculate_x_coordinate in lv_label_get_letter_on

* chore(label) Reduce varible scope in lv_label_get_letter_on

* chore(label) Use calculate_x_coordinate in lv_label_get_letter_pos

This also reduces complexity of lv_label_get_letter_pos from 21 to 19 (measured using python package 'ravioli')

* chore(label) Remove extra lv_anim_set_exec_cb on lv_label_refr_text

* chore(label) Minor edits on docs

* test(label): Remove unfinished tests

* test(label): Add tests for text selection

* Update lv_label.c

Fix formatting
2022-08-17 13:22:29 +02:00
_VIFEXTech
e93e210b41 feat(log): add option to disable printing of timestamps (#3578)
* feat(log): add option to enable printing of timestamps

* remove unnecessary \t

* Update lv_conf_template.h

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-08-17 13:18:53 +02:00
Gabriel Wang
e88a868005
feat(cmsis-pack): monthly update for August (#3574) 2022-08-17 13:08:42 +02:00
Gabor Kiss-Vamosi
3a67cb62da fix(style): add missing invalidation in lv_obj_remove_local_style_prop
fixes #3581
2022-08-17 12:53:12 +02:00
_VIFEXTech
1de64ade88
chore(demo/indev): fix warning (#3583)
* chore(demo/indev): fix warning

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

* fix 'Micropython CI / Build rp2 port' warning

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-08-17 12:32:51 +02:00
embeddedt
b08bc4c775
docs(examples) fix include paths after 2461ac0758eae69a94ee60a9be50d3de882ced09
Fixes #3571
2022-08-15 09:27:36 -04:00
Man, Jianting (Meco)
704363c5bd
[rt-thread][squareline] support squareline studio for every rt-thread bsp which has supported LVGL (#3566)
Squareline Studio can automatically put the generated C files into `ui` folder, so that rt-thread will automatically detect them; or, as a user,  you can move the generated C files into `ui` folder manually.
2022-08-15 14:47:58 +02:00
Man, Jianting (Meco)
95e6fcc566
[rt-thread] attach redefine LV_SNPRINTF and LV_VSNPRINTF (#3567)
attach 965552e446
2022-08-15 13:26:17 +02:00
Rafael Melo
bf8109e478
docs(README) add sponsor sections and minimal changes to Portuguese translation (#3568) 2022-08-14 16:14:33 -04:00
supperthomas
a4800dbcca
hal(disp): add macro of GPU (#3551) 2022-08-11 09:49:51 -04:00
Chris Morgan
b0a3b275e0
docs(draw) remove reference to old lv_fs_add_drv function (#3563) 2022-08-11 09:24:39 -04:00
_VIFEXTech
0900377be2
fix(draw): decrease the LOG level when the letter is not found (#3557)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-08-10 14:04:53 +02:00
_VIFEXTech
76dc45f546
fix(printf): add LV_PRIX32 to fix build error (#3555)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-08-09 18:09:01 +02:00
_VIFEXTech
b7a51f1378
chore(ime_pinyin): fix warning (#3554)
..\lvgl/src/others/ime/lv_ime_pinyin.h(144): warning:  #1-D: last line of file ends without a newline

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

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-08-09 18:08:06 +02:00
_VIFEXTech
a9da5ae3c8
fix(indev): fix typo lv_disp_t -> lv_indev_t (#3553)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-08-09 18:07:38 +02:00
_VIFEXTech
ed4df8c1bb
perf(label): add size cache for get self size event (#3546)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-08-09 18:07:08 +02:00
Man, Jianting (Meco)
87456815a1
docs(rt-thread): add tutorial videos (#3550) 2022-08-08 11:53:48 +02:00
Jackhtk
91f69874ab
fix(hal_disp): incorrect deinit callbacks set (#3549)
This patch correct some incorrectly set hal display callbacks.
2022-08-08 10:46:37 +02:00
Gabor Kiss-Vamosi
3a8b1c8748 feat(flex,grid): add const styles to flex and grid
related to #3481
2022-08-07 23:34:54 +02:00
Gabor Kiss-Vamosi
95e8358962 Update ROADMAP.md 2022-08-07 23:25:46 +02:00
Gabor Kiss-Vamosi
84361f9ea3 fix(colorwheel): fix updating color when using lv_colorwheel_set_hsv
fixes https://forum.lvgl.io/t/about-colorwheel-updates-bug/9522
2022-08-07 23:05:55 +02:00
Gabor Kiss-Vamosi
4519a874d7 fix(canvas): fix clipéping on transformation
fixes: #3545
2022-08-07 21:09:46 +02:00
tries
4a7ddf9f19
feat(textarea): add lv_textarea_get_current_char(obj) (#3536)
* Update lv_textarea.h

add uint32_t lv_textarea_get_right_char(lv_obj_t * obj);  //Get a the right character from the current cursor position

* Update lv_textarea.c

Add uint32_t lv_textarea_get_right_char(lv_obj_t * obj); Get a the right character from the current cursor position

* Add uint32_t lv_textarea_get_right_char(lv_obj_t * obj); /* Get a the right character from the current cursor position */Y

* Rename name to 'lv_textarea_get_current_char(..)' and modify 'int' to 'uint32_t'

Co-authored-by: root <root@localhost.localdomain>
2022-08-05 00:24:58 +02:00
Man, Jianting (Meco)
35a3b5ee8d
docs(README): update Chinese README (#3543) 2022-08-04 10:48:49 +02:00
Bora Özgen
6012d3e31c
fix(bar): stop animation when set with LV_ANIM_OFF (#3538) 2022-08-03 08:13:15 +02:00
Gabor Kiss-Vamosi
cc0bedbcbc
Update README.md 2022-08-02 19:20:33 +02:00
100ask
35d845b360
fix(ime_pinyin): fix the problem that lv_ime_pinyin is not hidden together with the keyboard (#3540)
In fact, the use of lv_ime_pinyin does not need to use the lv_ime_pinyin object itself, so we decided to hide it to avoid some other unnecessary problems.
2022-08-02 17:38:18 +02:00
Gabor Kiss-Vamosi
25f311e465
ci(stale): exclude next major and next minor labels too 2022-08-02 08:09:28 +02:00
Gabriel Wang
b454a66e0b
Cmsis pack montly update july (#3531)
* fix(gpu): fix arm2d support

* fix(cmsis-pack): fix cmsis-pack script

* feat(cmsis-pack): Monthly update for July

* fix: format

* remove unrequired white-spaces
2022-08-02 08:01:12 +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
Gabor Kiss-Vamosi
2461ac0758 docs: bring back flat widget directory structure 2022-07-27 10:51:11 +02: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
embeddedt
ca8f0ab549
refactor(style) prefix const property IDs with an underscore 2022-07-26 13:18:23 -04:00