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

199 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
4a766c516d example(slider): make lv_example_slider_3 work with dark theme too
fixes: #3094
2022-02-16 14:04:05 +01:00
embeddedt
9771050b99
chore(format) add formatting for examples & demos, merge test config 2022-02-13 13:59:17 -05:00
Amir Gonnen
c7a414bfc6
fix(micropython) update examples for new API (#3059)
Related: https://github.com/lvgl/lv_binding_micropython/issues/202
2022-01-29 12:39:11 -05:00
Gabor Kiss-Vamosi
62fc7123f1 feat(gridnav): add lv_gridnav (#2911)
* add first implememtation

* Update src/extra/others/gridnav/lv_gridnav.c

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>

* minor fix

* add example and minor fixes

* add more examples

* add more examples

* code formatting

* add LV_GRIDNAC_CTRL_SCROLL_FIRST

* code formatting

* add example for list

* add docs

* Misc:  improvements to gridnav docs (#2994)

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: Ken Carpenter <62639971+FoundationKen@users.noreply.github.com>
2022-01-20 10:29:40 +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
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
2d8476438b chore(example): fix image path in lv_example_btnmatrix_2.py 2022-01-05 13:46:11 +01:00
Gabor Kiss-Vamosi
b03dc9cf86 example(table): fix text alignment 2021-12-22 21:18:07 +01:00
Gabor Kiss-Vamosi
db53ea925c arch(draw): allow replacing the draw engine
BREAKING CHANGE: the API of lv_draw_... function have been changed
2021-12-21 15:54:22 +01:00
Man, Jianting (Meco)
70778fb9e4
fix: removed string format warnings for int32_t and uint32_t (#2924)
* fix:Removed string format warnings for int32_t and uint32_t
re-handle #2722

* feat(rt-thread): add the option of built-in examples
2021-12-20 09:52:07 +01:00
ckielstra
a5058eafd0
style(examples) fix style issues in Python examples (#2880)
Removes all semicolons at line endings in the Python examples.
2021-12-05 08:41:17 -05:00
ckielstra
91fc579ee7
docs fix spelling, parameter descriptions, comments, etc (#2865) 2021-12-02 08:44:05 -05:00
Gabor Kiss-Vamosi
d5ede0ebc6 fix(img) fix invalidation issue on transformations
fixes #2853
2021-11-30 20:35:12 +01:00
HX2003
163deb3dfb
chore(menu): fix broken links for the menu widget (#2848) 2021-11-29 13:55:14 +01:00
HX2003
ad947d3085
feat(widgets): add menu widget (#2603)
* add menu widget

* Update lv_example_widgets.h

* fix errors

* Update lv_menu.c

* try to fix errors

* micropython

* Fix colons

* Simplify and optimise

* Refactor

* Update lv_example_menu_3.c

* Update lv_example_menu_3.c

* Add simple micropython examples

* Improvements

* Automatically set clickable flags

* Custom header example

* Include example

* Refactor again

* Fix error

* Fix error

* Add back micropython example

* Hide back btn by default

* Add config

* Fix spacing

* Fix spacing

* Docs

* Update lv_theme_default.c

* Remove shaded text

* Improve clarity

* Create index.rst

* Update custom header example

* Change lv_menu_set_mode_sidebar to lv_menu_set_sidebar_page

* Fix unused variable

* Added ability to set title to page

* Flex

* Simplify sidebar check

* Rename mode and update header btn

* Run lv_conf_internal_gen.py

* Run code-format.sh

* Add contributors

* Micropython example 3

* Micropython example 4

* Improve docs
2021-11-29 11:33:34 +01:00
Gabor Kiss-Vamosi
8f6b1f8d6c
arch(draw) separate SW renderer to allow replacing it (#2803)
* decouple sw renderer

* simplify blend interface

* make tests pass

* udpate makefiles

* fix warning

* fix build errors

* run code formatter

* antialias fix
2021-11-26 12:44:10 +01:00
guoweilkd
ab544696dc
example: add non-null judgment to lv_example_obj_2 (#2799) 2021-11-12 11:00:48 +01:00
Gabor Kiss-Vamosi
462fbcbf49 feat(example) add text with gradient example
fixes #2778
2021-11-09 15:44:39 +01:00
Gabor Kiss-Vamosi
d9d3f27126 fix(printf) add (int) casts to log messages to avoid warnings on %d 2021-11-03 11:53:03 +01:00
Gabor Kiss-Vamosi
9c7338c90b fix warnings 2021-10-26 10:25:37 +02:00
Gabor Kiss-Vamosi
6319673db3 fix warnings 2021-10-26 10:14:05 +02:00
Gabor Kiss-Vamosi
0bab4a72cf fix(calendar) update the MP example 2021-10-25 18:51:49 +02:00
Jianting (Meco) Man
97bf74915d
fix(refr) silence compiler warning due to integer type mismatch (#2722) 2021-10-25 18:47:25 +02:00
Jianting (Meco) Man
95be2c7b99
fix(example):format codes (#2731) 2021-10-25 18:44:44 +02:00
Gabor Kiss-Vamosi
2e08f80361 feat(calendar): add the header directly into the calendar widget
In v8.0 the header was a detached object which made it difficult to move the header and the calendar
together. Besides there were no way to notifi the header of the calendar's shown date has changed.

BREAKING CHANGE: API of cleander headers, the appearence of the calendars

related to #2573"
2021-10-25 18:39:18 +02:00
Gabor Kiss-Vamosi
b3b3ffc2b3 feat(canvas) add lv_canvas_set_px_opa
fixes #2665
2021-10-19 13:44:40 +02: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
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
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
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
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
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
guoweilkd
1ca78a0461
fix(example_roller_3) mask free param bug (#2553) 2021-09-13 14:27:08 +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
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
ckielstra
5249a34d5d
docs more spelling fixes (#2499) 2021-08-27 12:15: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
Gabor Kiss-Vamosi
a9971471ba fix(group) keep the focused object in lv_group_swap_obj
fixes #2462
2021-08-19 21:12:09 +02:00
Carlos Diaz
4642dd30c2
docs(bar) fix typos in widget examples (#2463) 2021-08-18 11:26:09 -04:00
Gabor Kiss-Vamosi
bb6d6b7799 chore(example) minor improvements on lv_example_list_2 2021-08-18 14:28:02 +02: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
89081c2d6e fix(eaxmple) fix lv_example_chart_2 2021-08-05 17:54:31 +02:00
Gabor Kiss-Vamosi
4f9a037b93 fix warning and remove test code from an example 2021-08-03 16:37:25 +02:00
Gabor Kiss-Vamosi
7672847ce3 fix(bidi) fix the handling of LV_BASE_DIR_AUTO in several widgets
fixes #2421
2021-08-03 16:03:07 +02:00
Amir Gonnen
4bdeb756da
fix(examples) join usage (#2425)
Use 'join' correctly on Python scripts
2021-08-02 11:56:44 +02:00
Amir Gonnen
4effc87a87
fix(examples) add missing lv.PART.INDICATOR (#2423) 2021-07-31 17:40:13 -04:00