1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

388 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
6cb28da8e9 perf(coord. refr.): imrove the speed of layout, size and position recalculation
Reduce the number of refreshes.
2021-05-05 15:53:54 +02:00
Gabor Kiss-Vamosi
79d9f299ef refactor(txt) rename _lv_txt_get_width to lv_txt_get_width
related to #2228
2021-05-04 14:28:52 +02:00
Gabor Kiss-Vamosi
366d01eec9 fix(label) fix word wrapping if stretched by grid 2021-05-03 22:07:49 +02:00
Gabor Kiss-Vamosi
7b8de7af8a feat(dropdown) make the dropdown's list use the max_height style proeprty
Instead of a widget property
2021-05-03 17:34:15 +02:00
Gabor Kiss-Vamosi
efc5bccbfd fix(dropdown) fix showing the selected text if symbol=NULL
fixes #2235
2021-05-03 15:27:57 +02:00
Gabor Kiss-Vamosi
6b497dec3c feat(checkbox) add LV_EVENT_DRAW_PART_BEING/END to the indicator 2021-05-03 15:26:51 +02:00
Gabor Kiss-Vamosi
445c0ea9ae refactor(obj class) add user_data parameter to lv_obj_class_create_obj() 2021-05-03 14:06:55 +02:00
Gabor Kiss-Vamosi
4f743a7aa8 refactor(obj class) rename lv_obj_create_from_class to lv_obj_class_create_obj 2021-05-03 13:58:20 +02:00
Gabor Kiss-Vamosi
e1e45b1de3 fix(btnmatrix) improve focusing if used in groups 2021-05-03 11:14:25 +02:00
Gabor Kiss-Vamosi
a8016196a8 refactor(meter, chart) make them extra widgets instead of core 2021-05-02 22:01:56 +02:00
Gabor Kiss-Vamosi
5662c8d52d fix(bar, slider) fix minor issues 2021-05-02 21:05:23 +02:00
Gabor Kiss-Vamosi
8578a68849 fix(btnmatrix) fix typo
button_is_hidden was used instead of button_is_recolor
2021-05-01 07:41:12 +02:00
Gabor Kiss-Vamosi
e9aa30ff7d feat(btnmatrix) make 'recolor' a button flag insted of a function 2021-05-01 07:34:30 +02:00
Gabor Kiss-Vamosi
1864f608b4 fix build error 2021-04-30 10:03:57 +02:00
Gabor Kiss-Vamosi
3c40c83691 feat(bar) send LV_DRAW_PART_BEGIN/END for the indicator 2021-04-30 10:00:25 +02:00
Gabor Kiss-Vamosi
4f37e3ee25 refactor(arc) rename arc type to mode 2021-04-30 09:59:54 +02:00
Gabor Kiss-Vamosi
9394de662c Merge branch 'master' of https://github.com/littlevgl/lvgl 2021-04-29 15:16:47 +02:00
Gabor Kiss-Vamosi
6206a5381d fix(dropdown) make the symbol (arrow) use LV_PART_INDICATOR 2021-04-29 15:16:41 +02:00
Gabor Kiss-Vamosi
9ff1cb7f1d fix(meter) keep the creation order of indicator during drawing
Instead of drawing the indicators per scale
2021-04-29 10:11:21 +02:00
Gabor Kiss-Vamosi
1b93668df7 feat(obj) save self_size in the obejct to save a lot of recalculations 2021-04-29 09:52:49 +02:00
Gabor Kiss-Vamosi
ff2c2e5d33 fix(meter) use antialaising on needle rotation and fix needle invalidation artifact 2021-04-28 17:47:36 +02:00
Gabor Kiss-Vamosi
4f46336a54 fix(theme) simplify the default theme 2021-04-28 10:11:26 +02:00
Gabor Kiss-Vamosi
5b47f7b563 minor fixes 2021-04-27 17:44:15 +02:00
Gabor Kiss-Vamosi
492b3a417e feat(label) update long modes and use LV_SIZE_CONTENT 2021-04-27 15:36:08 +02:00
Gabor Kiss-Vamosi
9eb71a0538 feat(btnmatrix) allow NULL terminated array too for the button's list 2021-04-27 14:05:18 +02:00
Gabor Kiss-Vamosi
36d3537046 feat(bar, slider) unse int32_t as bar an slider ranges and values 2021-04-26 14:38:29 +02:00
Gabor Kiss-Vamosi
d4deb28663 fix(label) remove duplicated prototypse (coming from merge conflicts) 2021-04-26 11:25:44 +02:00
embeddedt
2d459c86d3
chore(arc) fix typo in header file
Fixes #2219
2021-04-25 09:36:51 -04:00
Gabor Kiss-Vamosi
db4613a904 fix(dropdown) in the list draw the border after the selected option 2021-04-25 13:50:53 +02:00
Gabor Kiss-Vamosi
6428be5441 fix(dropdown) fix include path 2021-04-24 21:30:05 +02:00
Gabor Kiss-Vamosi
5d4c9fac83 fix(include) remove unused stdio includes 2021-04-24 17:27:41 +02:00
Gabor Kiss-Vamosi
e29bfc5dc5 minor fixes 2021-04-22 15:36:40 +02:00
Themba Dube
980c18fa51 fix(canvas) allocate a fake driver on the stack
As of v8 drivers are no longer stored inside lv_disp_t, so a driver
needs to be allocated as well.

Fixes #2204
2021-04-21 13:09:55 -04:00
Gabor Kiss-Vamosi
6c863cabb7 feat(obj_class) use different prototype for the event_cb in lv_obj_class_t
It adds lv_obj_class_t * as the first arguement for MicroPython compatibility
2021-04-21 09:55:21 +02:00
Gabor Kiss-Vamosi
4324cf72f3 refactor(style, obj) lv_obj_get_width/height_fit -> lv_objget_get_content_width/height, style_tranform_x/y -> style_translate_x/y 2021-04-20 21:08:16 +02:00
Gabor Kiss-Vamosi
d412a98e54 fix(chart) don't draw division lines on the sides if there no padding but have a visible border 2021-04-20 13:46:49 +02:00
Gabor Kiss-Vamosi
48e70e97f0 fix(roller) fix left shift negative value
reported by ASAN
2021-04-20 13:31:40 +02:00
Gabor Kiss-Vamosi
cbb13f4ea5 fix(group) add some more widgets to default group 2021-04-20 13:26:57 +02:00
Gabor Kiss-Vamosi
d857de043e fix(table) fix memory leak
See https://forum.lvgl.io/t/possible-memory-leak-in-table-widget/5254
2021-04-19 15:56:34 +02:00
Gabor Kiss-Vamosi
13d7256528 fix(btn) set default width to LV_SIZE_CONTENT 2021-04-19 15:01:39 +02:00
Gabor Kiss-Vamosi
8667402524 minor fixes 2021-04-19 11:21:44 +02:00
Gabor Kiss-Vamosi
14bc4e9f8f Revert "feat(style) make transform_zoom use pixel or percentage value"
This reverts commit 5b4e9fc6f35b2be5cd8687d84012d245b5f971e1.
2021-04-18 20:39:47 +02:00
Gabor Kiss-Vamosi
6db12e4997 revert(style) revert the usage of transform width/height 2021-04-18 20:28:06 +02:00
Gabor Kiss-Vamosi
32bd067778 Revert "feat(style) make transform_zoom use pixel or percentage value"
This reverts commit 5b4e9fc6f35b2be5cd8687d84012d245b5f971e1.
2021-04-18 19:31:38 +02:00
Gabor Kiss-Vamosi
5b4e9fc6f3 feat(style) make transform_zoom use pixel or percentage value 2021-04-18 13:15:48 +02:00
Gabor Kiss-Vamosi
2fb8b672ae refactor(coords) rename LV_SIZE_PCT to LV_PCT 2021-04-18 12:19:02 +02:00
Gabor Kiss-Vamosi
da367337c9 feat(anim) remove lv_anim_path_t and use a callback directly
lv_anim_path_t was required for the MicroPython binding becase the callback couldn't attached dircetly to the styles
However, in v8, path_cb is used in the style transitons which has user_data and that user data is passed to the transition animation. Hence the path_cb sees the the same user data during the animaton as when it was registered to the transiton.
2021-04-17 20:50:10 +02:00
Gabor Kiss-Vamosi
e1355dbeee feat(style) add transform_x/y 2021-04-17 17:33:57 +02:00
Gabor Kiss-Vamosi
5f8445966b fix build error 2021-04-15 18:46:21 +02:00
Gabor Kiss-Vamosi
422c9e5bd6 feat(event) rework the prototype of lv_event_cb
It encapsulates all event related parameters into a single lv_event_t obejct.
2021-04-14 15:31:54 +02:00