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

222 Commits

Author SHA1 Message Date
Tomas Rezucha
e7a0f3b99c
fix various issues for esp32 (#3007)
* kconfig: Fix invalid dependancy in fsdrv

LV_USE_FS_* symbols are integers, instead of usual booleans.
We must treat them as such.

* ci: Get LVGL version from git tag

* docu: Update Espressif readme

* ci run apt update before installing
2022-01-14 12:47:49 -05:00
_VIFEXTech
85a582a6df
fix(conf) add missing LV_LOG_LEVEL default definition (#2996)
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(conf) mismatched macro judgment

* fix(conf) add missing LV_LOG_LEVEL default definition

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-01-12 15:14:49 +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
305284c2b5 fix(conf) define LV_LOG_TRACE_... to 0 in lv_conf_internal.h to avoid warnings 2022-01-10 11:16:09 +01:00
Themba Dube
02a6614b38 docs add demos 2021-12-29 16:10:36 -05:00
Man, Jianting (Meco)
d85f6324a7
chore replace LittlevGL references with LVGL (#2913) 2021-12-17 20:52:46 -05:00
guoweilkd
81f7d50c45
feat(freetype): support bold and italic (#2824)
* feat(freetype):support bold and italic

* fix(format): replace code-format.sh with code-format.py

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-24 20:19:09 +01:00
Xiang Xiao
3a0069adf8
chore(format): run code-format.sh (#2822)
* fix(format): run code-format.sh

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

* fix(astyle): add the 3rd party source file to exclude list

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 13:32:48 +01:00
Xiang Xiao
004b7ddd65
fix(font) improve builtin font source files generation process (#2825)
* fix(built_in_font_gen.py): change the output format from bin to lvgl

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

* fix(generate_all.py): improve the builtin font generation

1.run astyle on the generated source files
2.copy these files to src/font folder

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

* fix(font): regenerate all builtin font files

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 11:54:24 +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
Xiang Xiao
3035d27d4a
chore(conf): ensure the template and generated file conform the coding style (#2823)
* fix(conf): ensure the template and generated file conform the coding style

and remove lv_conf_internal.h from the excluding list of code-format.cfg

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

* fix(conf): regenerate lv_conf_internal.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 09:52:26 +01:00
Xiang Xiao
2d683fab96
fix(scripts): switch all scripts to python3 (#2820)
* fix(scripts): switch all to python3

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

* fix(changelog-template.hbs): remove the duplicated message fix

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 09:48:38 +01:00
Xiang Xiao
425455d20f
chore(font) code clean up (#2821)
* fix(lv_symbol_def.h): LV_SYMBOL_xxx by the encode order

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

* fix(lv_symbol_def.h): change the hex number to upper case

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

* fix(font): Keep the LV_FONT_DECLARE order same as LV_FONT_xxxx

and correct the comment and format

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 09:47:22 +01:00
Gabor Kiss-Vamosi
bf76d235e0 docs(changelog) improve changelog template 2021-11-10 12:14:20 +01:00
Gabor Kiss-Vamosi
cc78ef4506 feat(draw) add LV_BLEND_MODE_MULTIPLY 2021-11-09 15:34:30 +01:00
Xiang Xiao
ddfdccac3c
fix(conf): Make LV_COLOR_MIX_ROUND_OFS configurable (#2766)
* fix(config): check macro equal one correctly

1.remove all tabs from lv_conf_internal_gen.py
2.make the generated code align each other

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

* fix(conf): Make LV_COLOR_MIX_ROUND_OFS configurable

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 14:40:08 +01:00
_VIFEXTech
abcf5660a9 fix(conf) better support bool option from Kconfign (#2555)
* fix(arc) format code

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

* fix(Kconfig) add missing LV_BUILD_EXAMPLES configuration

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

* fix(fsdrv): remove the seek call in fs_open (#2736)

since the file should be located at zero after open

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

* docs(os) add example and clarify some poinits

* fix(draw border):border draw error if border width > radius (#2739)

* fix(label) consider base dir lv_label_get_letter_pos in special cases

related to https://github.com/lvgl/lvgl/issues/2712#issuecomment-953463193

* improve lv_conf_internal_gen.py for better Kconfig support

Co-authored-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: guoweilkd <guowei15@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-05 15:42:42 +01:00
Gabor Kiss-Vamosi
6d95521076 tool: add changelog_gen.sh to automatically generate changelog 2021-11-04 17:07:58 +01:00
Gabor Kiss-Vamosi
03fff13f62
feat(rlottie) add LVGL-Rlottie interface as 3rd party lib (#2700) 2021-10-22 15:44:43 +02:00
Gabor Kiss-Vamosi
a5793c70a9 Revert "feat(conf) add better check for Kconfig default"
This reverts commit f8fe5366bb051cd5090e4a06658eb0d32decc0b3.
2021-10-14 16:23:12 +02:00
Gabor Kiss-Vamosi
f8fe5366bb feat(conf) add better check for Kconfig default
If a bool config is False Kconfig it won't add CONFIG_ define and it confused lv_conf_internal.h

Fixes: #2555
2021-10-14 16:20:20 +02:00
Xiang Xiao
7124ef7761
fix(conf) make a better style alignment in lv_conf_internal.h (#2652)
and reorder Kconfig and src/lv_conf_kconfig.h as lv_conf_template.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-12 18:15:05 +02:00
Gabor Kiss-Vamosi
18f61c5f77
arch add small 3rd party libs to lvgl (#2569)
* move png, sjpg, bmp, gif, fs_if to extra/libs

* reorganize the examples

* update lv_conf_internal.h

* fix warnings

* add freetype

* remove unused assets

* add the new libs to build tests

* update the docs
2021-10-04 14:34:11 +02:00
Xiang Xiao
13b89a8434
fix(lv_conf_internal_gen.py) formatting fixes on the generated file (#2542)
* fix(lv_conf_internal_gen.py): change lv_conf.h to lv_conf_internal.h

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

* fix(lv_conf_internal_gen.py): remove the extra space before macro

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

* fix: regenerate lv_conf_internal.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-23 19:52:31 +02:00
Chris Mumford
c11569dc5c
ci(tests) use common script to install development prereqs (#2504)
Simplified workflow and documentation, by moving the
development package prerequisites into a new build script
`scripts/install-prerequisites.sh`.

Also, moved prerequisite installation into its own CI step and
removed explicit working directory change as it is no longer
needed (`main.py` does it).
2021-08-27 18:57:46 -04: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
Themba Dube
2122583ec2 style fix usage of clang-format directives
We do not use clang-format anymore, so the directive has been removed from most headers.

lv_conf_template.h is untouched as a convenience for downstream projects which still use the tool.

Fixes #2441
2021-08-07 16:06:40 -04:00
Gabor Kiss-Vamosi
1c3ecf1cc1 add basic patch release script 2021-07-16 20:35:31 +02:00
Gabor Kiss-Vamosi
1626a0c029 start to implement release/patch 2021-07-16 20:35:31 +02:00
Gabor Kiss-Vamosi
124f7a080e fix(style) use C files for style set functions instead of designated initializers
Related comment: ab149501c8 (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
b7da7c1b1a fix(font gen) revert test code 2021-05-30 13:51:14 +02:00
Gabor Kiss-Vamosi
0b03482bcb fix(font) fix generating builtin subpx fonts 2021-05-29 21:43:27 +02:00
Gabor Kiss-Vamosi
833b91364a feat(fonts) add more CJK characters to lv_font_simsum_16_cjk 2021-05-26 14:35:31 +02:00
Gabor Kiss-Vamosi
ee09d7de6a describe the intended features of the new relase scripts (initial ideas) 2021-05-26 12:57:11 +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
Themba Dube
2746e8ea2a chore(docs) add latexmk to dependencies and cache examples 2021-05-07 12:40:58 -04:00
Themba Dube
5e25cec25d docs(examples) update to handle Emscripten port switching to CMake 2021-05-04 17:14:22 -04:00
Themba Dube
aeeec60885 docs(widgets) begin adding support for building live examples 2021-05-04 16:41:56 -04: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
fa0c1d1423 docs(objects) update to v8 2021-04-27 15:36:53 +02: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
70c8180699 refactor(lv_conf_checker) rename to lv_conf_internal_gen.py 2021-04-26 12:21:35 +02:00
Gabor Kiss-Vamosi
fca7b106f1 feat(lv_conf) export LV_DPI_DEF in lv_conf_internal.h 2021-04-26 12:20:57 +02:00
Themba Dube
6df6cb0ec0 feat(docs) add first iteration of compile script 2021-04-23 17:45:34 -04:00