Gabor Kiss-Vamosi
273a0eb32f
fix(textarea) various cursor darwing fixes
2021-10-12 16:36:52 +02:00
guoweilkd
d58cae5551
fix(span) eliminate warning in lv_get_snippet_cnt() ( #2659 )
2021-10-12 08:34:24 -04:00
Johannes Marbach
d09f6bdea3
feat(disp): Enable rendering to display subsection ( #2583 )
...
This change introduces new fields on `lv_disp_drv_t` that allow to
specify the size of the full display and the offset of the display
subsection that is being rendered to. The values are used to transform
the drawing area before calling `flush_cb` so that only the desired part
of the full display is being rendered to.
Relates to: lvgl/lv_drivers#166
2021-10-11 08:48:15 -04:00
Johannes Marbach
7658f98e86
feat(keyboard): add user-defined modes ( #2651 )
...
As discussed in https://forum.lvgl.io/t/localized-keyboard-layouts/6734 ,
this adds further `..._USER_N` keyboard modes that can be used to
implemented more keyboard layouts for locales that need more than 4
layers.
2021-10-11 14:46:07 +02:00
Xiang Xiao
c9e3760464
fix(config): remove the nonexistent Kconfig ( #2654 )
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-10-11 14:02:59 +02:00
Xiang Xiao
539388a66f
fix(log): replace printf with fwrite to save the stack size ( #2655 )
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-10-11 12:49:47 +02:00
Gabor Kiss-Vamosi
038b78122e
fix(align) avoid circular references with LV_SIZE_CONTENT
...
If a child has pct width and the parent has LV_SIZE_CONTENT width, it results in a circular reference.
With fix zero content width is assumed for children in such case.
Besides if a child is center or right aligned the calculation of LV_SIZE_CONTENT might give in conter intuitive result.
To solve this center and right aligned children are not considered in LV_SIZE_CONTENT calculations.
The same applies for height.
2021-10-08 21:38:40 +02:00
Carlos Diaz
acf915b896
test(arc) add initial unit tests ( #2617 )
...
* test(arc): Add test for valid creation
* test(arc): Add test for max value truncation
* test(arc): Add test for min value truncation
* test(arc): Add test for value adjustment after updating range
* test(arc): Update test for min value truncation
* test(arc): Add test for angle updating after changing to symmetrical mode
* test(arc): Add test for angle updating after changing to symmetrical mode and value is greater than middle range
* test(arc): Use unity setUp function
* remove API comments from lv_arc.c
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2021-10-07 19:01:02 +02:00
Gabor Kiss-Vamosi
5f90029811
feat(event) add LV_EVENT_CHILD_CREATED/DELETED ( #2618 )
...
* feat(event) add LV_EVENT_CHILD_CREATED/DELETED
* update docs and CHANGELOG
2021-10-04 16:52:11 +02:00
grarup
4eb406440b
fix LV_FORMAT_ATTRIBUTE fix for gnu > 4.4 ( #2631 )
...
Co-authored-by: Peter Grarup <pegp@dgs-diagnostics.com >
2021-10-04 16:42:41 +02:00
s-hadinger
61b5cbb5d3
fix(meter) make lv_meter_indicator_type_t of type uint8_t ( #2632 )
2021-10-04 16:19:14 +02:00
yonkoma
3eb646d3dc
Fixed row size calculation ( #2633 )
...
Previous code did not account for padding, rounding up to the next multiple of 4 bytes
2021-10-04 15:56:06 +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
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
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
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
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
Gabor Kiss-Vamosi
f2987b6591
fix(table) consider border width for cell positions
...
fixes #2612
2021-09-28 09:20:09 +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
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
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
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
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
Gabor Kiss-Vamosi
fba37a30ab
fix(chart) draw line chart indicator (bullet)
...
There was a missing bullet if the previous point was LV_CHART_POINT_NONE
2021-09-17 22:25:09 +02:00
Mariotaku
efc5bb40d9
feat(drawing) hardware accelerated rendering by SDL2 ( #2484 )
...
* Hardware accelerated SDL render WIP
* Rect drawing code cleanup
* Fixed arc drawing angle
Fixed compact rect drawing
* Refactoring
Fixed cache deinit order
* Image recolor
Drawing left and right border
* Math problems
* Improving draw cache
* Improving line drawing logic
* Improving arc drawing quality
* Added round function
* Attempts to render properly on Pi
* Updated lruc function names
* Updated symbol names
* Saved ram by reusing part of background rect
* Added outline drawing
Removed arc texture caching
* rect drawing cache rendering
* high efficiency rect shadow texture caching
* fixed simple borders drawing
* fixed generic borders drawing
* Simplified text atlas caching logic
Supports chroma keyed image
* Color palette WIP
* Improved draw cache
* Updated defines for better build
* renaming files for better consistency
* fix includes
* Updated lv_conf_internal with generator
* Fixing build issues
* fixed img rotation pivot
* better font atlas caching WIP
* fix includes
* full font atlas support
improved gpu caching for rect
* update conf header
* fix palette creation
* Fixed font atlas key matching
* fixed chroma key image background
* added 3bpp mask palette (WIP)
* fixed caching key initialization
* disabled gpu arc drawing for now
updated naming convention
* updated naming convention
* fix makefile and include path
* improved rect drawing when having masks
* improved rect drawing when having masks
* reduced texture allocation while drawing with mask
* accurate clipping for rects and texts
* fixed build error
* fixed build error
* line drawing WIP
* updated imports
* fixed freezes if LRU has smaller new item
* fixed clipping rect color
* fixed build error
* using built-in free function for LRU key
* Added custom background drawing function
* fixing imports
* fixed shadow bitmap on old SDL libs
* improved draw_img compatibility
* fixing font baking
* fixed font rendering
* fixed lv_draw_line check
* configurable SDL include path
* disabled SDL line drawing implementation
* supports screen resize
* sdl: Remove duplicated object
Observed issue:
/usr/bin/ld: lv_gpu_sdl_texture_cache.o: \
in function `_lv_gpu_sdl_texture_cache_init':
lv_gpu_sdl_texture_cache.c:(.text+0x30): \
multiple definition of `_lv_gpu_sdl_texture_cache_init'; \
lv_gpu_sdl_texture_cache.o:lv_gpu_sdl_texture_cache.c:(.text+0x30): \
first defined here
Forwarded: https://github.com/mariotaku/lvgl/pull/1
Relate-to: https://github.com/lvgl/lvgl/pull/2484
Signed-off-by: Philippe Coval <philippe.coval@huawei.com >
* Reduced opening of image
* Closes image resource properly
* improved draw image logic
* Moved driver related code to lv_drivers
* fixed lv_deinit implicit sdl code invocation
* improved shadow clipping
* fixed outline area invalidation
* updated comments
* formatted code using astyle
* Updated README
* formatted code
* fixed typo
* fixed static declaration
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
Co-authored-by: Philippe Coval <philippe.coval@huawei.com >
2021-09-16 18:20:32 +02:00
Liming Du
71e6f65d51
fix(lv_textarea) fix crash while delete non-ascii character in pwd mode ( #2549 )
2021-09-15 13:58:25 +02:00
Gabor Kiss-Vamosi
fb7ea10401
fix(anim) return the first anim if exec_cb is NULL in lv_anim_get()
...
Accprdign to the docs it should have worked like this.
Related to #2535
2021-09-15 13:40:42 +02:00
Gabor Kiss-Vamosi
192419e7bb
fix(label) fix lv_label_get_letter_on with BIDI enabled
2021-09-14 15:08:11 +02:00
Gabor Kiss-Vamosi
56ebb1a4c8
feat(textarea) remove the need of lv_textarea_set_align
...
It was used to position the text in one line text areas where the label is shorter then the text area itself.
However, setting min_width=100% in case of one line text area ensures that the label is at least as wide as
the text area. This way the normal text_align style property can be used too.
Fixes https://forum.lvgl.io/t/spinbox-text-centering-not-working-as-intended-expected/6762/4
2021-09-13 20:09:54 +02:00
Gabor Kiss-Vamosi
26e15fa577
fix(imgbtn) add lv_imgbtn_set_state
...
The normal lv_obj_add/clear_state couldn't refresh the image button properly.
2021-09-13 17:44:12 +02:00
Gabor Kiss-Vamosi
f810265c0d
fix(draw) shadow darwing with large shadow width
2021-09-13 15:02:29 +02:00