Commit Graph

109 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
e2771db8ce example(keyboard): add an example to show how to set a new map
fixes #3490
2022-07-18 17:50:35 +02:00
Gabor Kiss-Vamosi
1ed6404456
chore(docs): fix typo 2022-07-07 22:34:04 +02:00
Gabor Kiss-Vamosi
373dcfc76e
docs(checkbox): describe how to get the checkbox's the state 2022-07-07 20:41:49 +02:00
Gabor Kiss-Vamosi
746917dcca
docs(chart): describe how to set the space between columns 2022-07-01 09:11:31 +02:00
pete-pjb
11b708ed95 chore(tabview) correct format. 2022-06-13 13:00:23 +01:00
pete-pjb
2c9695afb4 feat(tabview) add API to rename tab.
https://github.com/lvgl/lvgl/issues/3407#issue-1265916615
2022-06-13 12:56:37 +01:00
martaaay
d5ccf379da
docs(slider) mention that VALUE_CHANGED is not sent on release (#3397) 2022-06-02 19:50:17 -04:00
Johannes Marbach
eef838f51f
feat(textarea): make it possible to customize the bullet character (#3388)
* feat(textarea): Make it possible to customise the bullet character

This adds functions to allow overriding the default bullet character
with a custom one (or even no character at all).

* Update docs/widgets/core/textarea.md

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

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-05-30 12:05:22 +02:00
embeddedt
d6911053aa
chore(docs) remove unneeded eval_rst statements 2022-05-09 13:35:03 -04:00
embeddedt
1816fa576c
ci(docs) replace use of sed with proper configuration variables 2022-05-09 13:28:06 -04:00
Gabor Kiss-Vamosi
a99eb6bb6a fix(spinbox): rename lv_spinbox_set_pos to lv_spinbox_set_cursor_pos
fixes #3301
2022-05-04 21:14:28 +02:00
Gabor Kiss-Vamosi
e624b90db3 fix(draw): be sure angle values are in the correct range 2022-04-27 14:25:12 +02:00
Gabor Kiss-Vamosi
318146a2c2 feat(draw): support transforming widgets and improfe sw transform
For details see: https://docs.lvgl.io/master/overview/style.html
2022-04-26 10:45:12 +02:00
guoweilkd
47791926f9
feat(span): add an interface for setting the number of lines (#3200)
* fix draw: remove the high overflow judgment code
2022-03-29 13:06:58 +02:00
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
Carlos Diaz
0a5c5465d2
chore(docs): fix trailing whitespaces in files (#3133) 2022-03-01 13:52:45 +01:00
Andres O. Vela
340d45cfa9
feat(label): added animation style property to apply it to circular scrolling animation of label widget (#3128)
* feat(label): added animation style property to apply it to circular scrolling animation of label widget

Added an animation style property to be used as animation template for different use cases in different widgets.
This commit implements using this property to set the start and repeat delay of the circular scrolling animation of the label widget.

Closes #3097

* fix(label): changed animation style property's var_type to `const lv_anim_t *`

* example(label): added example showing how to customize circular scrolling animation

* chore(label): ran code-format.py and added missing function prototype to lv_example_widgets.h
2022-02-25 11:54:27 +01:00
GoT
cbcf194bc4
docs(msgbox) fix typo (#3095) 2022-02-15 16:45:02 -05:00
Carlos Diaz
0b68840cd9
test(bar): add unit tests (#2845)
* test(bar) Add test for docummented default attributes

* test(bar) Update test for docummented default attributes

* test(bar): Indicator width tracks value

* test(bar) Calculate bar indicator width based on its style

Take padding, max value and bar value into consideraion

* test(bar) Indicator area gets smaller when increasing padding in LV_PART_MAIN style

* test(bar) Start value changes only when in range mode

* docs(bar): Add missing MODE to symbols

* test(bar) Start value should be smaller than current value

* test(bar): Test current value truncation to max and min value

* bar: Check bar mode in lv_bar_set_start_value

bar start_value can be changed only when bar is in LV_BAR_MODE_RANGE mode.
Return early when it's not.

* test(bar): Fix width calculation test

* bar: Initialize indic_area in constructor

* test(bar): Refactor indicator coordinate update test

* test(bar): Indicator negative value in symmetrical mode

* test(bar): Fix base direction

* test(bar): Indicator coord test for RTL base dir
2022-01-22 16:17:13 +01:00
Mariotaku
d33db6bb59
feat(sdl): support rounded images (#3012)
* added radius mask for rounded img

* improved mask composite
improved image zoom fidelity

* implementing sdl image radius

* low performance radius img drawing

* improved rounded image performance

* improved rounded image performance

* improved rounded image blending

* pixel perfect rounded image for SDL

* accurate drawing only

* supports rounded img for rect as well

* fixed mask check when zoomed

* surrounded rounded mask in lv_img with draw_complex check

* updated docs

* fixed build issue

* aware of clip_corner property

* reverted lv_img.c

* updated docs
2022-01-18 11:41:45 +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
a5fbf22d41
chore(docs): fix lv_list_add_text
fixes: #2980
2022-01-10 12:10:50 +01:00
Gabor Kiss-Vamosi
9d3fb41896 feat(slider): consider ext_click_area on the knob with LV_OBJ_FLAG_ADV_HITTEST 2022-01-08 13:48:35 +01:00
Themba Dube
7ed1a5625a docs(widgets) fix edit links 2022-01-06 10:30:02 -05:00
Gabor Kiss-Vamosi
e7ac0e4198 feat(obj): add LV_OBJ_FLAG_OVERFLOW_VISIBLE 2022-01-05 16:18:19 +01:00
guoweilkd
ee3aa07a83
feat(obj): subdivide LV_OBJ_FLAG_SCROLL_CHAIN into ...CHAIN_HOR and ...CHAIN_VER (#2961)
* feat(obj scroll):subdivide LV_OBJ_FLAG_SCROLL_CHAIN into ...CHAIN_HOR and ...CHAIN_VER

* feat(roller):open the horizontal scroll chain

* chore(docs):improve the description of scroll chain
2022-01-05 13:44:05 +01:00
patricklaf
edb207e27c
chore(docs) fix typo in btnmatrix.md (#2960)
Fix typo.
2022-01-05 09:59:24 +01:00
embeddedt
b4986ab5dc
docs(switch) improve wording
Fixes #2927
2022-01-04 21:38:15 -05:00
Gabor Kiss-Vamosi
70327bdb2d feat(obj) add LV_OBJ_FLAG_SCROLL_WITH_ARROW 2021-12-17 14:58:23 +01:00
embeddedt
d792c5f6c2
docs(imgbtn) fix typo 2021-12-09 09:57:17 -05:00
embeddedt
eeee48b1c9
docs(bar) fix default range
Related: https://github.com/lvgl/lvgl/pull/2845#issuecomment-981288322
2021-11-29 10:59:44 -05:00
Miau09
ea8caa75c5
fix(chart) add lv_chart_refresh() to the functions which modify the data (#2841)
* Update lv_chart.c

add lv_chart_refresh(obj); on some more functions

* Update chart.md

small typo
2021-11-29 11:43:04 +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
bd99c921b6
chore(docs) minor formatting fix 2021-11-26 12:33:48 +01:00
Gabor Kiss-Vamosi
9d3134b66e feat(dropdown): keep the list on open/close for simpler styling
So far it was deleted on close, now it's just hidden/unhidden
2021-11-23 13:45:46 +01:00
ckielstra
b911b72f4b
docs: spelling fixes (#2828) 2021-11-23 10:50:18 +01:00
Vincent Hamp
bf6837f4c0 docs(events) rename LV_EVENT_APPLY to LV_EVENT_READY (#2791) 2021-11-11 16:51:17 +01:00
Gabor Kiss-Vamosi
749d1b3ec3 docs(table) describe keypad/encoder navigation
related to: #2746
2021-11-02 19:22:09 +01: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
guoweilkd
91a0d3b5e4
feat(span) indent supports percent for fix and break mode (#2693)
* span:indent supports percent for fix and break mode

* Update docs/widgets/extra/span.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-10-20 11:13:42 +02:00
Gabor Kiss-Vamosi
b3b3ffc2b3 feat(canvas) add lv_canvas_set_px_opa
fixes #2665
2021-10-19 13:44:40 +02:00
Gabor Kiss-Vamosi
dfa4f5cff5 feat(arc) add support to LV_OBJ_FLAG_ADV_HITTEST 2021-10-19 12:52:35 +02:00
gesture1968
2a701eeaa7
feat(lv_spinbox) support both right-to-left and left-to-right digit steps when clicking encoder button (#2644)
* Update lv_spinbox.c

* Added support for moving the Spinbox digit position from right-to-left when clicking the button on an encoder. The default behaviour is when clicking the encoder button, the digit is moved from left-to-right (MSB to LSB). 
* Added a check to see if the spinbox digit-count is just one. In that case it is pointless to check the buttonclick
* See also the spinbox.h file

* Update lv_spinbox.c

* Forgot the implementation of the setter function
* forgot a ;

* Update lv_spinbox.h

Adding Spinbox support for moving the digitposition both from left-to-right and right-to-left when editing a spinbox and clicking the encoder button. The current behaviour is clicking the encoder button only moves the digitposition from right to left (from MSB to LSB)

* Update lv_spinbox.c

Added brief / comment to new function

* Update lv_spinbox.h

More clear Brief / Comment

* Update lv_spinbox.c

nested function replaced by lv_pow fiunction

* Update lv_spinbox.h

removed spaces

* Update lv_spinbox.h

Replaced type used for direction of digit step when clicking an encoder with existing LVGL lv_dir_t

* Update lv_spinbox.c

Replaced type used for direction of digit step when clicking an encoder with existing LVGL lv_dir_t

* Update spinbox.md

Added comment for the new function 'lv_spinbox_set_digit_step_direction'

* Update src/extra/widgets/spinbox/lv_spinbox.h

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

* Update src/extra/widgets/spinbox/lv_spinbox.h

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

* Update lv_spinbox.c

bug: old definition LV_SPINBOX_DIGIT_DIR_TO_RIGHT changed to LV_DIR_RIGHT

* Update lv_spinbox.h

Extra linefeed removed

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
2021-10-14 13:42:25 +02: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
2a9b9e6e11
Update arc.md 2021-09-29 13:30:44 +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
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
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