_VIFEXTech
9a0a74813d
fix(libs): fix memcmp memory access overflow ( #3205 )
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com >
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com >
2022-03-25 14:22:16 +01:00
_VIFEXTech
8ddbae1f35
fix(png): fix possible file leaks ( #3204 )
...
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com >
2022-03-24 22:12:29 +01: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
Gabor Kiss-Vamosi
48728a7839
fix(layout): fix the handling of FLOATING children
2022-03-20 21:45:09 +01:00
Gabor Kiss-Vamosi
559986d5b7
chore: run code format
2022-03-18 16:03:48 +01:00
Gabor Kiss-Vamosi
242112b2df
fix(theme): properly disable transitions if LV_THEME_DEFAULT_TRANSITION_TIME==0
...
fixes #3157
2022-03-18 15:46:07 +01:00
Mariotaku
c76a3d206e
added missing implementation for lv_fragment_get_manager ( #3169 )
2022-03-17 16:26:16 +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
Gabor Kiss-Vamosi
28bd55c5d3
fix(span): align the baselines ( #3164 )
2022-03-16 10:43:39 +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
Gabor Kiss-Vamosi
62d6f3c533
fix(theme): make the basic theme even more simpler
2022-03-12 18:50:19 +01:00
Gabor Kiss-Vamosi
5ec6694f78
fix(theme): fix mono theme init
2022-03-10 15:12:17 +01:00
HX2003
bc94b4de52
feat(menu): make menu widget more compatible with encoder ( #3061 )
2022-03-10 14:03:38 +01:00
Gabor Kiss-Vamosi
a6c4c13490
fix(menu): fix crash on delete ( #3154 )
...
* fix(menu): fix crash on delete
fixes #3123
* handle NULL
* code formatting
2022-03-09 00:05:53 +01:00
embeddedt
8ac93ad883
refactor(style) move flag information into a dedicated table ( #3102 )
2022-03-07 10:01:25 -05:00
embeddedt
cbc38afb3a
fix(bmp) fix typo in BPP condition
...
Thanks @egonbeermat
2022-03-05 13:28:45 -05:00
Xiang Xiao
ff0bf6386d
chore(lvgl.[h|mk]): don't include the grandchildren file ( #3145 )
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2022-03-04 21:00:13 +01:00
LY3T
5a3ca098f7
fix(jpg): swap high and low bytes when macro LV_COLOR_16_SWAP is 1 ( #3138 )
2022-03-01 18:57:48 +01:00
Gabor Kiss-Vamosi
ac202e7b96
fix(keyboard): don't show popovers on map change
2022-02-23 18:41:49 +01:00
Gabor Kiss-Vamosi
3d92972695
fix(spinbox): set its default width in its class
2022-02-22 20:55:37 +01:00
Gabor Kiss-Vamosi
bb03fb197c
fix(theme): in the basic theme show the textarea cursor only in focuses state
2022-02-22 20:55:37 +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
_VIFEXTech
48cb4e9164
fix(extra): adjust image decoder initialization order ( #3085 )
...
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com >
2022-02-18 12:56:14 +01:00
Ali Rostami
f23ae6e67c
fix(chart): optimize chart invalidation ( #3028 )
...
* replace lv_chart_refresh by invalidate_point so the chart will be updated faster.
* Update lv_chart.c
It seems the second `invalidate_point` is extra and can be removed.
* Update src/extra/widgets/chart/lv_chart.c
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2022-02-18 12:30:47 +01:00
Ken Carpenter
349a51cb03
fix(gridnav): get key code from the actual event ( #3101 )
...
This enables queuing up a key while animation is occurring and then sending it to the gridnav once the animation is complete.
Without this, if you call `lv_event_send()` to send a key to the gridnav later, then `lv_indev_get_act()` returns `NULL` since it's no longer actively processing the key handler, and nothing happens from the key.
2022-02-17 22:23:14 +01:00
Gabor Kiss-Vamosi
6c00552629
fix: fix warning
2022-02-17 18:34:26 +01:00
Gabor Kiss-Vamosi
b1e2c06658
fix(gif): fix rare issue when drawing the gif's background
2022-02-17 18:16:48 +01:00
Gabor Kiss-Vamosi
b6d2daa493
feat(gridnav): add lv_gridnav_set_focused
...
fixes #3069
2022-02-17 18:11:30 +01: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
_VIFEXTech
9f90d82e91
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 >
2022-02-08 15:22:28 +01:00
Gabor Kiss-Vamosi
74091c42f7
chore: fix typos in FATFS config
...
fixes https://github.com/lvgl/lvgl/pull/2979#discussion_r794612134
2022-01-29 13:47:14 +01:00
Adrian Schnyder
abba1c351a
feat(fs): add caching option for lv_fs-read ( #2979 )
...
BREAKING CHANGE:
The `LV_FS_...` related configs needs to be updated.
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2022-01-24 20:52:37 +01:00
Gabor Kiss-Vamosi
4197b2fd6e
feat(scrollbar): add more control over scrollbar paddings
2022-01-24 20:11:43 +01:00
Amir Gonnen
e143788903
fix uninitialized variable ( #3033 )
2022-01-20 17:12:08 -05:00
Gabor Kiss-Vamosi
62fc7123f1
feat(gridnav): add lv_gridnav ( #2911 )
...
* add first implememtation
* Update src/extra/others/gridnav/lv_gridnav.c
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com >
* minor fix
* add example and minor fixes
* add more examples
* add more examples
* code formatting
* add LV_GRIDNAC_CTRL_SCROLL_FIRST
* code formatting
* add example for list
* add docs
* Misc: improvements to gridnav docs (#2994 )
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com >
Co-authored-by: Ken Carpenter <62639971+FoundationKen@users.noreply.github.com >
2022-01-20 10:29:40 +01:00
Amir Gonnen
9d1febd275
fix uninitialized variables ( #3023 )
2022-01-19 09:24:44 -05:00
Gabor Kiss-Vamosi
e9d70803e1
chore(qrcode): fix warnings
...
fixes #3016
2022-01-19 14:06:12 +01:00
Gabor Kiss-Vamosi
adc218a7b3
fix(theme): add arc, spinner and colorwheel to basic theme
2022-01-19 14:02:43 +01:00
Gabor Kiss-Vamosi
ca5f04cfe3
fix(theme): fix crash in lv_theme_basic_init
2022-01-19 13:03:02 +01:00
ckielstra
febafd1cc7
chore: many trivial spelling and layout fixes ( #3008 )
...
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2022-01-17 08:10:23 -05:00
Carlos Diaz
a9a6cb8efd
fix(span): explicitly set span->txt to the return value of lv_mem_realloc( #3005 )
...
* Update lv_span.c
Explicitly set `span->txt` to return of `lv_mem_realloc`
* Update lv_mem.h
Add note about `lv_mem_realloc` return value on failure
2022-01-17 13:18:19 +01:00
Gabor Kiss-Vamosi
8d52de14b3
fix(table, chart): fix memory leaks
...
fixes #2967
2022-01-15 20:43:17 +01:00
X-Ryl669
6617385f8a
feat(draw): add gradient dithering support ( #2872 )
...
* Add dithering to gradients
* Add support for 8x8 matrix for ordered dithering
* Fix CI errors
* Try error diffusion on vertical gradient too
* Vertical error diffusion dithering
* Add support for runtime based dithering mode selection (from none, ordered, error diffusion).
* Reduce the binary size of the code by sharing the dithering table when appropriate.
* Fix CI
* Fix CI
* Review corrections
* Fix union mapping
* Revert bg_color changes
* Fix for keeping bg_color in the API.
* Fix after review
* Add support for setting multiple stops per gradient in the style API
* Let's make an example
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2022-01-11 12:38:30 +01:00
guoweilkd
3d1ea607f2
feat(span): lv_spangroup_get_expand_width() adds a parameter ( #2968 )
...
BREAKING CHANGE: from now lv_spangroup_get_expand_width() has a max_width parameter too.
2022-01-07 21:33:30 +01:00
Almir Mehanović
8bbbdf7c07
fix(rlottie): fix variable name ( #2971 )
...
Couldn't compile because 'c': undeclared identifier error
2022-01-06 22:12:29 +01:00
Konstantinos Papadopoulos
343515cd4d
fix(fatfs) add missing cast ( #2969 )
...
f_tell requires a FIL type pointer causing compiling to fail.
2022-01-06 09:05:44 -05:00
xaowang96
ddae70f741
fix(snapshot) fix memory leak ( #2970 )
...
Signed-off-by: wangxuedong <wangxuedong@xiaomi.com >
Co-authored-by: Themba Dube <embeddedthemba@gmail.com >
2022-01-06 08:56:53 -05:00
Gabor Kiss-Vamosi
e7ac0e4198
feat(obj): add LV_OBJ_FLAG_OVERFLOW_VISIBLE
2022-01-05 16:18:19 +01:00
Gabor Kiss-Vamosi
1092550775
fix(png) check png magic number to be sure it's a png image
2022-01-03 20:10:26 +01:00