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

375 Commits

Author SHA1 Message Date
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
Gabriel Wang
f6ebb9a5a7
fix(porting): add missing function prototypes (#3054) 2022-01-28 11:58:41 -05: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
X-Ryl669
923defd6b6
fix(gradient): general cleanup and fix for alignment issues (#3036)
* Try to fix ASAN behavior

* improve alignments

* fix buffer overflow and various other fixes

* minor fixes

* formatting

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-24 15:47:47 +01: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
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
Gabriel Wang
da0b891a28
fix(porting): fix typo and an unmatched prototype (#2998) 2022-01-12 15:18:09 +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
Gabor Kiss-Vamosi
2d8476438b chore(example): fix image path in lv_example_btnmatrix_2.py 2022-01-05 13:46:11 +01:00
Gabor Kiss-Vamosi
0a1d7d9ef2 chore(example): fix image path in lv_example_snapshot_1.py 2022-01-05 13:38:46 +01:00
Gabor Kiss-Vamosi
6701d36afe fix: remove symlinks to be accepted as an Ardunio library
See c60ed68e94 (r62838038)
2022-01-05 10:08:10 +01:00
Mariotaku
9bbf661dd4
perf(sdl): optimize the use of SDL_RenderSetClipRect (#2941)
* reduce SDL_RenderSetClipRect as much as possible

* added some comments

* removing draw_sw usage

* fixed import

* implemented polygon drawing

* supports subimage for sdl texture based images

* fixed formatting

* removed unused code

* cleanup

* cleanup

* formatted code
2022-01-05 10:01:18 +01:00
Dirk Schlichte
05382b95de
fix(examples) move event callback registration outside loop in lv_example_event_3 (#2959) 2022-01-04 10:55:00 -05:00
Gabor Kiss-Vamosi
b03dc9cf86 example(table): fix text alignment 2021-12-22 21:18:07 +01:00
Gabor Kiss-Vamosi
db53ea925c arch(draw): allow replacing the draw engine
BREAKING CHANGE: the API of lv_draw_... function have been changed
2021-12-21 15:54:22 +01:00
Gabor Kiss-Vamosi
d79283c145
fix(example): update LVGL_Arduino.ino 2021-12-21 10:21:40 +01:00
Man, Jianting (Meco)
70778fb9e4
fix: removed string format warnings for int32_t and uint32_t (#2924)
* fix:Removed string format warnings for int32_t and uint32_t
re-handle #2722

* feat(rt-thread): add the option of built-in examples
2021-12-20 09:52:07 +01:00
Gabor Kiss-Vamosi
8951bd2a15 Revert "experiement"
This reverts commit 5658cc9444db9325cce4897ecc9c308b116fdf95.
2021-12-17 15:04:34 +01:00
Gabor Kiss-Vamosi
5658cc9444 experiement 2021-12-17 14:58:23 +01:00
_VIFEXTech
8a2c670be4
feat(others) add monkey test (#2885)
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(conf) mismatched macro judgment

* feat(others) add monkey test

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

* fix(monkey) use lv_memset_00 to initialize monkey config

* fix(monkey) random upper limit value

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

* feat(examples) add monkey test example

* feat(docs) add monkey test description

* feat(monkey) add user_data

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

* docs(monkey) add instructions

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

* fix(monkey) EX -> EXAMPLE

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

* feat(monkey) add comments to monkey config

* docs(monkey) update usage

* feat(Kconfig) add monkey test configuration

* fix(monkey) rand() -> lv_rand()

* feat(example) add button monkey test

* docs(monkey) add button introduction

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* fix(monkey) obj -> monkey

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-12-14 20:55:45 +01:00
ckielstra
a5058eafd0
style(examples) fix style issues in Python examples (#2880)
Removes all semicolons at line endings in the Python examples.
2021-12-05 08:41:17 -05:00
ckielstra
91fc579ee7
docs fix spelling, parameter descriptions, comments, etc (#2865) 2021-12-02 08:44:05 -05:00
Gabor Kiss-Vamosi
d5ede0ebc6 fix(img) fix invalidation issue on transformations
fixes #2853
2021-11-30 20:35:12 +01:00
HX2003
163deb3dfb
chore(menu): fix broken links for the menu widget (#2848) 2021-11-29 13:55:14 +01:00
HX2003
ad947d3085
feat(widgets): add menu widget (#2603)
* add menu widget

* Update lv_example_widgets.h

* fix errors

* Update lv_menu.c

* try to fix errors

* micropython

* Fix colons

* Simplify and optimise

* Refactor

* Update lv_example_menu_3.c

* Update lv_example_menu_3.c

* Add simple micropython examples

* Improvements

* Automatically set clickable flags

* Custom header example

* Include example

* Refactor again

* Fix error

* Fix error

* Add back micropython example

* Hide back btn by default

* Add config

* Fix spacing

* Fix spacing

* Docs

* Update lv_theme_default.c

* Remove shaded text

* Improve clarity

* Create index.rst

* Update custom header example

* Change lv_menu_set_mode_sidebar to lv_menu_set_sidebar_page

* Fix unused variable

* Added ability to set title to page

* Flex

* Simplify sidebar check

* Rename mode and update header btn

* Run lv_conf_internal_gen.py

* Run code-format.sh

* Add contributors

* Micropython example 3

* Micropython example 4

* Improve docs
2021-11-29 11:33:34 +01:00