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

7531 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
1a8fed5df0 docs add libs to the main index 2021-10-04 15:08:52 +02:00
Gabor Kiss-Vamosi
f5f9562336 docs include paths in libs 2021-10-04 15:03:49 +02:00
Gabor Kiss-Vamosi
d908f31f8f test fix warning and docs build error 2021-10-04 14:55:27 +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
embeddedt
b20a706112
fix(keyboard) use LVGL heap functions instead of POSIX 2021-10-02 16:55:35 -04:00
Karijn Wessing
e7ba9b93af
feat(example) add lv_example_chart_9.py (#2604)
* Create lv_example_chart_9.py

lv_example_chart_9.c was exactly what i needed, thanks for that one!
the only thing is, i needed it in MicroPython :-) 
Here it is

* Update lv_example_chart_9.py

removed duplicate (... = lv.CHAR_POINT.NONE) lines

* Update lv_example_chart_9.py

restored gap
2021-10-01 09:51:49 +02:00
Gabor Kiss-Vamosi
d9c6ad0425 fix(scrollbar) hide the scrollbar if the scrollble flag is removed 2021-09-30 18:20:35 +02:00
Gabor Kiss-Vamosi
188a9467b1 fix(scrollbar) hide the scrollbar if the scrollble flag is removed 2021-09-30 18:06:42 +02:00
Gabor Kiss-Vamosi
78158f039f fix(blend) fix green channel with additive blending 2021-09-30 18:02:16 +02:00
Gabor Kiss-Vamosi
c9d396571d fix(textarea) allow using cursor with not full bg_opa
fixes #2620
2021-09-30 17:44:47 +02:00
Lzx-James
3211066c05
docs(display) fix typo (#2624) 2021-09-30 09:46:37 -04:00
Gabor Kiss-Vamosi
82f3fbcad7 fix(txt) _lv_txt_get_next_line return 0 on empty texts
fixes #2615
2021-09-29 14:04:17 +02:00
guoweilkd
e83eadf73a
fix(span):crash if span->txt = "" (#2616) 2021-09-29 14:01:43 +02:00
Gabor Kiss-Vamosi
86012aefc7 fix(btnmatrix) always udpate row_cnt
allocate_btn_areas_and_controls() returned very early if the same number buttuns were set
the the number fo rows can be different and is wasn't updated

fixes #2619
2021-09-29 13:51:30 +02:00
Gabor Kiss-Vamosi
2a9b9e6e11
Update arc.md 2021-09-29 13:30:44 +02:00
Gabor Kiss-Vamosi
6f90f9cefb fix(table) remove unnecessary invalidation on pressing 2021-09-29 12:06:32 +02:00
Gabor Kiss-Vamosi
a4128a8356 fix(scroll) minor fixes on obj scroll handling
fixes https://github.com/lvgl/lvgl/issues/2547#issuecomment-927242760
2021-09-29 12:06:32 +02:00
Francesco Valla
fc4fdb1e2c
fix(disp) set default theme also for non-default displays (#2596)
* feat(theme) add getter function for default theme

* fix(disp) set default theme also for non-default displays

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-29 11:24:13 +02:00
Gabor Kiss-Vamosi
e6e98abbc2
docs update version support table 2021-09-29 10:37:51 +02:00
seteq
c77ac0d904
docs add static for lv_indev_drv_t (#2605)
* added static for lv_indev_drv_t

* removed accidential edit

* Update indev.md
2021-09-29 10:31:35 +02:00
Johannes Marbach
d57eb7614d
feat(btnmatrix/keyboard): add option to show popovers on button press (#2537)
This adds a new option that, when enabled, shows popovers when pressing
buttons, similar to how the system keyboards on Android and iOS behave.
2021-09-28 11:28:59 +02:00
Carlos Diaz
480ee77911
Kconfig: Add missing options (#2597)
* Kconfig: Add option for LV_USE_GPU_SDL

Default is n or 0

* Kconfig: Add option for LV_CIRCLE_CACHE_SIZE
2021-09-28 09:41:10 +02:00
Gabor Kiss-Vamosi
f2987b6591 fix(table) consider border width for cell positions
fixes #2612
2021-09-28 09:20:09 +02:00
Karijn Wessing
bae2e2d44c
feat(example) add lv_example_chart_8.py (#2611)
translated lv_example_chart_8.c to python variant
2021-09-28 08:31:46 +02:00
fvanroie
bc9c356347
docs(animimg) add to extra widgets index and fix example (#2610)
`lv_example_animimg_1` should not contain the `.c` extension, and add animation image to the index page for extra widgets.
2021-09-27 13:02:52 -04:00
fvanroie
f9d9aef122
docs(animimg) Add missing animation image page (#2609)
* docs(animimg) Add missing animation image page

Skeleton page for the new `animimg` object.
It needs more review and updating, but this can serve as a start.

* docs(examples) Add index.rst for animation image

Add index.rst for animation image to include the example in the documentation of the widget.

* Update animimg.md
2021-09-27 17:52:00 +02:00
Gabor Kiss-Vamosi
2433732570 docs(image) mention the frame_id paramter of lv_img_decoder_open
Related to https://github.com/lvgl/lvgl/pull/2197#issuecomment-926852353
2021-09-27 17:04:04 +02:00
guoweilkd
ea980668f4
fix(label):LONG_DOT mode crash if text Utf-8 encode > 1 (#2591) 2021-09-27 16:26:10 +02:00
Karijn Wessing
114ad09e21
fix( example) in lv_example_scroll_3.py float_btn should only be created once (#2602) 2021-09-27 11:08:15 +02:00
Karijn Wessing
c7a49841bf
fix(example) minor fixes in lv_example_chart_2.py (#2601)
a few small bugfixes, demo works in simulator now
2021-09-27 11:07:24 +02:00
Mariotaku
c45d9ccc3e
fix lv_deinit when LV_USE_GPU_SDL is enabled (#2598)
* Fixed lv_deinit when LV_USE_GPU_SDL is enabled

* Update CHANGELOG.md
2021-09-27 11:04:53 +02:00
Gabor Kiss-Vamosi
5565d5965a
feat(example) chart example to add gap between the old and new data (#2565)
* fix(chart) draw line chart indicator (bullet)

There was a missing bullet if the previous point was LV_CHART_POINT_NONE

* feat(example) add chart example with gap in circular mode

* add missing prototype
2021-09-27 11:01:31 +02:00
Gabor Kiss-Vamosi
28e9593e58 fix(example) revert text code from lv_example_checkbox_2 2021-09-24 13:07:40 +02:00
Gabor Kiss-Vamosi
73e036bba7 fix(msgbox) prevent the buttons being wider than the msbgox 2021-09-24 13:03:13 +02:00
Gabor Kiss-Vamosi
5240fdda5c fix(scroll) fix scroll_area_into_view with objects larger than the parent 2021-09-24 12:59:05 +02:00
Gabor Kiss-Vamosi
d089b364e7 feat(example) add checkbox example for radio buttons
related to https://forum.lvgl.io/t/implement-radio-button-with-checkbox/6879/8
2021-09-24 12:02:13 +02:00
Carlos Diaz
40364453b0
fix add missing LV_ASSERT_OBJ checks (#2575)
* feat(led): Add missing LV_ASSERT_OBJ checks

* feat(calendar): Add missing LV_ASSERT_OBJ checks

* feat(chart): Add missing LV_ASSERT_OBJ checks

* feat(colorwheel): Add missing LV_ASSERT_OBJ checks

* feat(animimg): Add missing LV_ASSERT_OBJ checks

* feat(keyboard): Add missing LV_ASSERT_OBJ checks

* feat(meter): Add missing LV_ASSERT_OBJ checks

* feat(msgbox): Add missing LV_ASSERT_OBJ checks

* feat(span): Add missing LV_ASSERT_OBJ checks

* feat(spinbox): Add missing LV_ASSERT_OBJ checks

* feat(tabview): Add missing LV_ASSERT_OBJ checks
2021-09-23 19:53:16 +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
guoweilkd
458d0353cf
fix(span) opa bug (#2584) 2021-09-23 18:55:02 +02:00
Neo
5f75a3b406
fix(snapshot) snapshot is affected by parent's style because of wrong coords (#2579)
* fix(snapshot) image is affected by parent's style because of wrong coordinates

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>

* fix(snapshot): take ext_draw_size into account and set disp res to obj size.

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Change-Id: Iae0d37fa1b2cdf20220087ced51857a36e83bb6d
2021-09-23 18:28:28 +02:00
guoweilkd
a3952fcd0a
fix(label):make draw area contain ext_draw_size (#2587) 2021-09-23 16:54:57 +02:00
fvanroie
6c868a4b35
docs(group) remove reference to lv_cont which is gone in v8 (#2580)
As reported on the forum: https://forum.lvgl.io/t/documantation-mislead/6876
2021-09-23 08:12:27 -04:00
Johannes Marbach
51f3310592
fix(btnmatrix): make ORed values work correctly with lv_btnmatrix_has_btn_ctrl (#2571)
This commit replaces the current `actual & expected` check in
`lv_btnmatrix_has_btn_ctrl` with `(actual & expected) == expected`. This
is required to make the function work with ORed control flags because
otherwise a parity in *any* bit will result in a return value of `true`
even if not all expected bits are set.
2021-09-22 12:03:19 +02:00
Gabor Kiss-Vamosi
47734c4abe fix(log) be sure LV_LOG_... is not empty if logs are disabled
Fixes https://github.com/lvgl/lvgl/issues/2408#issuecomment-919645206
2021-09-20 21:03:24 +02:00
Mariotaku
258a9ae03b
feat(msgbox) add a content area for custom content (#2561)
* added lv_dialog

* fixed include path

* formatted code

* make dialog backdrop themeable

* added missing backdrop init

* moved features in lv_dialog to lv_msgbox

* simplified msgbox style
2021-09-20 20:49:36 +02:00
Carlos Diaz
bb6829796b
test(checkbox) add initial tests (#2551)
* test(checkbox): Add initial test for checkbox

* test(checkbox): Add test_checkbox_should_have_default_text_when_created

* test(checkbox): Add test_checkbox_should_return_dinamically_allocated_text

* test(checkbox): Add initial tests for static text

Tests are failing tho

* test(arc): Rename bugfix test to arc

Also adds reference to issue in a comment

* test(checkbox): Tests for static text passes

* test(checkbox): Remove test for memory freeing when static text is refreshed

NULL isn't a valid parameter in lv_checkbox_set_text_static
2021-09-20 20:38:47 +02:00
JojoS
a31f4b77bf
fix compiling of examples when cmake is used (#2572)
* use INCLUDE_SIMPLE in all c sources

* removed unnecessary ifdef LV_LVGL_H_INCLUDE_SIMPLE
2021-09-20 13:42:47 +02:00
Carlos Diaz
ab50f001a6
feat(tests): Include debug information to test builds (#2568) 2021-09-19 15:23:21 -04:00
Gabor Kiss-Vamosi
3e0ddd0285 docs(checkbox) update the comment lv_checkbox_set_text_static
NULL shouldn't be passed as text
Related to #2551
2021-09-18 20:04:04 +02:00
Gabor Kiss-Vamosi
3df2a74447 fix(btnmatrix) do not show pressed, focused or focus key states on disabled buttons 2021-09-17 22:25:09 +02:00