Commit Graph

38 Commits

Author SHA1 Message Date
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
Gabor Kiss-Vamosi 2cae4a27c1 add some extra components and examples 2021-02-05 16:52:51 +01:00
Gabor Kiss-Vamosi 5c5327f31a clean up widgets 2021-02-01 14:55:08 +01:00
Gabor Kiss-Vamosi ea6ee3d198 refactoring and fixes 2021-01-23 20:46:42 +01:00
Gabor Kiss-Vamosi 093a6652cf integarte label and checkbox 2020-12-21 10:56:25 +01:00
Gabor Kiss-Vamosi 4fe3821719 add color filter style property 2020-12-19 06:51:14 +01:00