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

49 Commits

Author SHA1 Message Date
Xiang Xiao
4c4f954059
chore(style): remove the trailing space from all source files (#3188)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 11:25:51 +01:00
ckielstra
f79e2838cb
chore(doc): spelling (#3172)
* Spelling: 'an unicode' -> 'a unicode'

* fix(changelog) spelling

* Remove double spaces

* Spelling
2022-03-16 10:19:19 +01:00
Gabor Kiss-Vamosi
9a1e385b2b docs(images): fix notes about breaking change inf v8.2
Indexed images are not chroma keyed. Use the alpha chaneel instead.
Realted to: https://forum.lvgl.io/t/8-2-0-image-drawing-renders-actual-color-defined-for-transparency-in-lv-img-cf-indexed-8bit-images-8-1-0-and-prior-did-not/8133
2022-02-07 19:15:01 +01:00
Gabor Kiss-Vamosi
0b5a1d4b23 release v8.2 2022-01-31 13:32:05 +01: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
Gabor Kiss-Vamosi
7de661a3f4 docs(changelog) update changelog with the generated data 2021-11-10 12:16:03 +01:00
Kevin Thibedeau
09e19bb687
fix(refresh) switch to portable format specifiers (#2781)
Some platforms define uint32_t as "unsigned long" rather than "unsigned int".
The %d format specifier is mismatched and the C99 format macros are the only
portable way to handle these types.

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-09 16:03:06 +01:00
Kevin Thibedeau
61b0de3bdc
fix(stm32) Mark unused variable in stm32 DMA2D driver (#2782) 2021-11-09 15:23:38 +08:00
Kevin Thibedeau
53a3e17f76
fix(proto) Remove redundant prototype declarations (#2771) 2021-11-07 16:03:31 +08:00
Jeff Kent
b189be67d2
fix(msgbox) add declaration for lv_msgbox_content_class (#2761) 2021-11-05 11:37:59 +01:00
DennisSHCheung
5b548006ed
fix(txt): skip basic arabic vowel characters when processing conjunction
* Skips basic vowel characters when calculating arabic conjunction

* Updated CHANGELOG.md

* Update docs/CHANGELOG.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-05 11:36:55 +01:00
Matteo Iervasi
d6341f05a9
fix(core) add L suffix to enums to ensure 16-bit compatibility (#2760) 2021-11-03 14:28:12 -04:00
Johannes Marbach
b59cc9cfb8
feat(disp): add non-fullscreen display utilities (#2724)
This adds utility functions/macros for dealing with non-fullscreen
displays.

Related to lvgl/lv_drivers#166
2021-10-25 08:26:43 -04:00
Jianting (Meco) Man
8debe10cd2
feat add support for rt-thread RTOS (#2660) 2021-10-12 17:35:37 +02: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
Jose Commins
07688e6543
docs(colorwheel) fix old API names (#2643)
`lv_colorwheel_set_color_mode` is now `lv_colorwheel_set_mode`
2021-10-06 12:55:09 -04: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
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
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
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
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
Karijn Wessing
953d9fb003
feat(example) add lv example list 2 (#2545)
* added micropython sample for obj.move_to_index(index)

* formatting update

* added lv.group_remove_obj(btn) for command buttons

* updated CHANGELOG.md
2021-09-13 17:41:25 +02:00
Thomas Hepworth
8abd060a8a
example(chart) add area chart example (#2507)
* feat add stacked area chart example

The example shows how to use a line chart and masking to create a stacked area chart.

* feat stacked area chart example

Updated index.rst to contain the stacked area chart example

* feat stacked area chart example

Coding style changes

* Update changelog

* feat(example) stacked area chart

Added axis ticks

* feat(example) stacked area chart

Responses to PR comments
- Changed to fixed point maths
- Renamed variables and filenames

* feat(example) stacked area chart

Made shift amount a variable.

* feat(example) stacked area chart

Fixed typo in changelog

Co-authored-by: Tom Hepworth <Tom_Hepworth@mentor.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-13 12:11:10 +02:00
Johannes Marbach
2cd5a90b7d
feat(msgbox): omit title label unless needed (#2539)
Prior to this commit, when the title string was empty and the close
button disabled, an extra empty line showed at the top of the message
box. This commit prevents adding the title label unless it has content
or is needed as a spacer for the close button.

As a positive side effect, this also prevents the default "text" from
displaying when NULL is passed as the title.

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-09 15:09:49 +02:00
Johannes Marbach
52dac2b8e4
feat(msgbox): add function to get selected button index (#2538)
This adds a new function lv_msgbox_get_active_btn that works analogously
to lv_msgbox_get_active_btn_text but returns the button index instead of
its text.

The index is more convenient for comparison in localized applications as
it doesn't depend on the current language.
2021-09-09 14:40:37 +02:00
Kevin Thibedeau
ec9b41a05f
fix(zoom) multiplication overflow on 16-bit platforms (#2536) 2021-09-06 21:40:38 -04:00
Kevin Thibedeau
7d9fe20a0e
docs(all) Proofread, fix typos and add clarifications in confusing areas (#2528)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-06 10:55:37 +02:00
Karijn Wessing
780e0efe2c
feat(obj) add lv_obj_move_to_index(obj, index), renamed lv_obj_get_child_id(obj) to lv_obj_get_index(obj) (#2514)
* - renamed lv_obj_get_id(obj) to lv_obj_get_index(obj).

- added lv_obj_move_to_index(obj, index).

* automatic review comment fixed

* removed unused variable

* review issue

* restored deprecated function in header, otherwise Build Micropython with LVGL submodule / build (pull_request)  failes

* moved deprecated lv_obj_get_child_id() back to lv_obj_tree.h, otherwise Micropython will not build

* inline function did not work

* made deprecated function 'static inline'

* and now also inline

* move static inline function to lv_api_map.h again

* removed lv_obj_move_up/down

* changed log to warning for deprecated function

* redefined lv_obj_move_foreground(obj) and lv_obj_move_background(obj) as inline functions now calling lv_obj_move_to_index(obj, index).

- lv_obj_swap(obj1, obj2) added. (#2461)
2021-09-05 20:47:55 +02:00
Johannes Marbach
53b65a7964
fix(examples) don't compile assets unless needed (#2523)
This wraps the code for the assets under examples/assets in
LV_BUILD_EXAMPLES so that it is not compiled when examples are
deactivated in lv_conf.h.
2021-09-03 15:01:01 +02:00
Kevin Thibedeau
4d74194e0d
fix(color) Bad cast in lv_color_mix() caused UB with 16bpp or less (#2509) 2021-08-30 16:46:41 +02:00
ckielstra
5249a34d5d
docs more spelling fixes (#2499) 2021-08-27 12:15:39 +02:00
ckielstra
0f4e6e26f9
Simple spelling fixes (#2496) 2021-08-26 10:52:39 +02:00
Karijn Wessing
e111ea2a62
added lv_obj_move_up() and lv_obj_move_down() (#2467)
* - small with unneeded lv_obj_invalidate()  fix in lv_obj_move_foreground() and lv_obj_move_background()

- added lv_obj_move_up() and lv_obj_move_down()
- used new functions in sample 2
- used lv_obj_swap() to shuffle (turn around) list

* solved build error

* added top and bottom buttons in sample
2021-08-24 14:30:38 +02:00
Mariotaku
9b92885f83
fix(draw) use correct pointer in lv_draw_mask assertion (#2483) 2021-08-23 10:25:00 -04:00
Karijn Wessing
9a1f7f2fcb
feat(obj) add lv_obj_swap() function (#2461)
* proposal for lv_obj_swap() function

* review issues applied

* review changes for comments
2021-08-18 11:32:10 +02:00
Gabor Kiss-Vamosi
0f8bc18f6a docs update CHANGELOG 2021-08-02 15:55:04 +02:00
Gabor Kiss-Vamosi
c386110e23 docs update changelog 2021-07-16 21:57:54 +02:00
Gabor Kiss-Vamosi
8691611de2 update version numbers to v8.1.0-dev 2021-06-14 13:51:45 +02:00
Gabor Kiss-Vamosi
3fdb9b6b35 fix conflicts 2021-06-14 13:46:25 +02:00
Gabor Kiss-Vamosi
847236044d
Update CHANGELOG.md 2021-06-07 18:55:41 +02:00
Gabor Kiss-Vamosi
48fd73d20d
Update CHANGELOG.md 2021-06-07 17:13:06 +02:00
Gabor Kiss-Vamosi
9c7f4a8651
Update CHANGELOG.md 2021-06-01 11:11:54 +02:00
Gabor Kiss-Vamosi
a6fc90ccc5
Update CHANGELOG.md 2021-05-25 16:07:06 +02:00
Gabor Kiss-Vamosi
fdf33e1190
Update CHANGELOG.md 2021-05-25 15:53:01 +02:00
Gabor Kiss-Vamosi
76fe4148b5 docs update CHANGELOG, CONTRIBUTING and ROADMAP 2021-05-18 11:07:01 +02:00
Gabor Kiss-Vamosi
d85703b274 docs include ROADMAP.md and CHANGELOG.md 2021-05-15 01:10:19 +02:00