Commit Graph

55 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi 3ff625483c demos(render): start render demo 2023-10-25 13:38:37 +02:00
Gabor Kiss-Vamosi 85798af3cd feat(draw): add non uniform scale (scale_x and scale_y) 2023-10-20 23:29:22 +02:00
Gabor Kiss-Vamosi 0721884ee9 refactor: disp->display, res->result/resolution, hor/ver->horizontal/vertical, txt->text, angle->rotation, zoom->scale 2023-09-18 22:57:30 +02:00
Gabor Kiss-Vamosi 09c12d0f9c refactor(btn, img): rename btn to button and img to image 2023-09-14 20:12:31 +02:00
bjsylvia 83cd50b4df fix(typos): fix some typos for style (#4469)
Signed-off-by: XiaoweiYan <yanxiaowei@xiaomi.com>
Co-authored-by: XiaoweiYan <yanxiaowei@xiaomi.com>
2023-08-20 21:03:24 +02:00
Gabor Kiss-Vamosi 0b83a82a07 feat(multi-instance): collect all the global variables into a struct to allow running multiple instances of LVGL
Closes #4358
2023-08-19 01:42:37 +02:00
Kevin Schlosser dcffe24094 fix: add guard macros to lv_style_gen.c,h and lv_obj_style_gen.c,h (#4450) 2023-08-16 22:24:37 +02:00
bjsylvia 67ca457a07 fix: fix typos (#4451)
Signed-off-by: XiaoweiYan <yanxiaowei@xiaomi.com>
Co-authored-by: XiaoweiYan <yanxiaowei@xiaomi.com>
2023-08-14 16:49:30 +02:00
_VIFEXTech 9a483c87bf feat(layer): add more efficient widget translucent mode (#4415)
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2023-08-14 07:57:19 +02:00
Carlos Diaz 76547db1d7 refactor(rename): LV_IMG_ZOOM_NONE to LV_ZOOM_NONE (#3957)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2023-02-04 17:20:42 +01:00
W-Mai 8ed8542681 feat(margin): add margin style property (#3807)
Signed-off-by: W-Mai <1341398182@qq.com>
Signed-off-by: xinbingnan<xinbingnan@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2023-01-18 09:52:30 +01:00
h13 c4ea9db787 chore: fix missing include. (#3837) 2022-12-21 22:17:57 +01:00
embeddedt ca8f0ab549 refactor(style) prefix const property IDs with an underscore 2022-07-26 13:18:23 -04:00
embeddedt d6e5200013 refactor(style): store constant property IDs with a pointer instead of directly (#3506) 2022-07-20 11:32:40 +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
embeddedt 8ac93ad883 refactor(style) move flag information into a dedicated table (#3102) 2022-03-07 10:01:25 -05: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
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
ckielstra 10866ce3f0 fix(doc): full covering opacity is 255, not 256 (#3022) 2022-01-19 09:30:10 -05: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
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
Xiang Xiao f1584e122f docs(style) minor style fix (#2818)
* fix(misc): avoid ;; after LV_ASSERT_STYLE/LV_ASSERT_OBJ

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

* fix(style_api_gen.py): remove the unused docs_prop_cnt variable

and remove the trailing space

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

* fix(style_api_gen.py): ensure the generated code follow the coding style

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

* fix(style_api_gen.py): ensure props has the same order of lv_style_prop_t

and correct the style flags

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 10:53:16 +01:00
Gabor Kiss-Vamosi cc78ef4506 feat(draw) add LV_BLEND_MODE_MULTIPLY 2021-11-09 15:34:30 +01:00
ckielstra 5249a34d5d docs more spelling fixes (#2499) 2021-08-27 12:15:39 +02:00
Gabor Kiss-Vamosi 4e3b86020f docs(style) fix typo in style property descriptions 2021-08-17 10:47:27 +02:00
Gabor Kiss-Vamosi ff087dafb4 docs(style) complete the description of style the properties 2021-08-12 14:26:21 +02:00
Gabor Kiss-Vamosi 124f7a080e fix(style) use C files for style set functions instead of designated initializers
Related comment: https://github.com/lvgl/lvgl/commit/ab149501c8df389049eb62769aa4a51a10891152#commitcomment-51535673
2021-05-31 19:27:35 +02:00
Gabor Kiss-Vamosi ab149501c8 fix(style) use an other technique to generate style set functions
The previous version caused glitches.
2021-05-31 14:45:53 +02:00
Gabor Kiss-Vamosi 165ff859f3 fix warnings 2021-05-31 13:03:56 +02:00
Gabor Kiss-Vamosi 82b21a98a4 fix(style) remove designated initializers from lv_style_gen.h 2021-05-31 12:53:04 +02:00
Gabor Kiss-Vamosi e2a7f559ab feat(bidi) make base dir a style property and rename lv_bidi_dir_t to lv_base_dir_t 2021-05-19 20:55:44 +02:00
Gabor Kiss-Vamosi abe04e98d3 docs add style props 2021-05-14 15:37:35 +02:00
embeddedt e3b8b84d71 feat(style) add support for declaring styles in ROM (#2220)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-05-01 20:16:34 -04:00
Gabor Kiss-Vamosi 492b3a417e feat(label) update long modes and use LV_SIZE_CONTENT 2021-04-27 15:36:08 +02:00
Gabor Kiss-Vamosi a9bedcf335 minor fixes 2021-04-23 11:34:59 +02:00
Gabor Kiss-Vamosi eaed66057b refactor(style) rename LV_STYLE_PROP_ALL to LV_STYLE_PROP_ANY 2021-04-23 10:35:36 +02:00
Gabor Kiss-Vamosi 4324cf72f3 refactor(style, obj) lv_obj_get_width/height_fit -> lv_objget_get_content_width/height, style_tranform_x/y -> style_translate_x/y 2021-04-20 21:08:16 +02:00
Gabor Kiss-Vamosi e1355dbeee feat(style) add transform_x/y 2021-04-17 17:33:57 +02:00
Gabor Kiss-Vamosi 9787d38781 feat(style) add transform_x/y 2021-04-15 18:31:50 +02:00
Gabor Kiss-Vamosi 28257ff9fa feat(style) add basic support to min/max-width/height 2021-04-02 09:45:54 +02:00
Gabor Kiss-Vamosi 5c991aaf71 solve conflicts 2021-03-31 19:58:53 +02:00
Gabor Kiss-Vamosi 663bcfd030 api(style) add lv_style_selector_t instead of lv_part_t and lv_state_t in style API 2021-03-31 19:57:14 +02:00
Xiang Xiao 07a9b3232d fix(style_api_gen.py) extract style_get_cast and style_set_cast (#2174) 2021-03-31 19:31:56 +02:00
Gabor Kiss-Vamosi 38e77d1381 fix(style_gen) update style_api_gen.py according to the changed style properties 2021-03-26 12:26:57 +01:00
Xiang Xiao e153ccd1c1 fix(style_api_gen.py): change lv_color_filter_cb_t to lv_color_filter_dsc_t (#2162)
and update the generated style header files
2021-03-26 12:16:57 +01:00
Xiang Xiao 8dd3c76305 fix(build): remove lv_ prefix from path 2021-03-23 23:30:32 +08:00
Xiang Xiao 7f6a2eccea fix(style): make the code generated by style_api_gen.py confirm the coding style (#2093) 2021-02-23 16:01:46 +01:00
embeddedt e467686002 fix(v8) handle most compiler warnings (#2086) 2021-02-20 07:51:03 +01:00
embeddedt 406da6856c Various v8 compilation fixes (#2078)
* fix(style) improve script and fix C/C++ compilation

* fix(api_map) add NO_TASK_READY
2021-02-19 15:58:58 +01:00
Gabor Kiss-Vamosi cdd531bef3 format(style_api_gen.py) change tabs to spaces 2021-02-15 09:37:40 +01:00