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

6237 Commits

Author SHA1 Message Date
Xiang Xiao
2aacbd5ddd
fix(misc): correct the comment and coding style (#2096)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-03-01 15:55:46 +01:00
Xiang Xiao
02efef12db
fix(image decoder): fix the chagne losed after merging dev-v8 (#2103)
commit 06917a6ec3bfdf12b19aede3e6df06e66d681ed7
* fix(image decoder): fix memory leak when no decoder can be used

and handle the out of memory gracefully

* fix(image decoder): zero the output fields after each iteration

to clean the stale info saved by try failed decoder and remove img_data
zero from lv_img_decoder_built_in_open since it has be done in the loop

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-03-01 15:52:04 +01:00
Gabor Kiss-Vamosi
fd34dbe056 test with LV_MEM_CUSTOM 1 too 2021-03-01 15:44:43 +01:00
Gabor Kiss-Vamosi
367e3a31df fix(mem): with LV_MEM_CUSTOM don't try to realloc &zero_mem, use malloc instead 2021-03-01 15:44:27 +01:00
Gabor Kiss-Vamosi
23a8c0b68a remove accent colors becasue they were inconsistent 2021-03-01 15:15:35 +01:00
Gabor Kiss-Vamosi
f990a5f85e use LV_COLOR_PALETTE_LIGHT_BLUE by deafult 2021-03-01 14:59:38 +01:00
Gabor Kiss-Vamosi
90d0eec5ae feat(anim): add lv_anim_set_get_value_cb 2021-03-01 13:52:57 +01:00
Xiang Xiao
b35c67c8b6
Various fix for gc module (#2102)
* fix(gc): remove the unused variables from gc

* fix(gc): correct typo(from _lv_img_defoder_ll to _lv_img_decoder_ll)

* fix(gc): change _lv_drv_ll to _lv_fsdrv_ll

since only instances fo lv_fs_drv_t can be added to this list

* fix(gc): Iterate the root variables only when they are really used

to save the memory space

* fix(image cache): move cache_temp to gc.h

and rename it to _lv_img_cache_single
2021-03-01 13:18:57 +01:00
Gabor Kiss-Vamosi
1b79a5ae32 fix(obj): swap lv_obj_move_forground/background 2021-03-01 12:12:18 +01:00
Gabor Kiss-Vamosi
16b9e3fd96 minor fixes 2021-03-01 12:04:19 +01:00
Gabor Kiss-Vamosi
2f0443b803 update lv_conf_internal.h 2021-03-01 12:03:46 +01:00
Gabor Kiss-Vamosi
27025ee6f9 fix(mem): assume &zero_mem has 0 size 2021-03-01 12:02:18 +01:00
Gabor Kiss-Vamosi
403351222e add logs + minor fixes 2021-03-01 12:00:13 +01:00
Gabor Kiss-Vamosi
bcafd8a0b0 add some more logs 2021-03-01 11:57:49 +01:00
Gabor Kiss-Vamosi
8bc6931f7f add many LV_LOG_TRACE-s 2021-02-28 20:42:48 +01:00
Gabor Kiss-Vamosi
df5a47871d add some logs 2021-02-28 15:02:00 +01:00
Gabor Kiss-Vamosi
468fdb4f74 feat(debug): add mem. monitor simalarly to perf. monitor 2021-02-28 15:01:28 +01:00
Gabor Kiss-Vamosi
6f357ea745 minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
1e22db2c2c minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
bdef0c3b8b feat(obj): add LV_OBJ_FLAG_FLOATING and lv_obj_has_flag_any 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
4650132767 fix(shadow draw): fix missing column in hte middle with some sizes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
3eab2e2dc7 feat(log): add timestamp to log mesages 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
85f60bcf70 feat(calendar): add lv_calendar_header_dropdown 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
7b48fa0fc0 minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
bdef86faf2 feat(style): add lv_style_get_prop_inlined and use it in the core main object style getter 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
347680a3c0 feat(dropdown): lv_dropdown_set/get_selected_highlight + minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
b1677205b0 minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
950124f5a0 fix(scroll): varius fixes on lv_obj_scroll_to_view and snapping 2021-02-28 14:18:32 +01:00
Xiang Xiao
8f48cf5cc7
fix(font): Handle the out of memory gracefully in decompression case (#2100) 2021-02-27 14:07:17 +01:00
Gabor Kiss-Vamosi
0493a9aebd update lv_conf_template 2021-02-26 16:12:30 +01:00
Gabor Kiss-Vamosi
87cee2f72b minor fixes 2021-02-26 13:13:37 +01:00
Gabor Kiss-Vamosi
c9abb38e67 feat(color): add lv_color_get_palette_... functions and update the default theme accordingly 2021-02-26 13:02:06 +01:00
Gabor Kiss-Vamosi
17a619bd95 Merge branch 'dev' of https://github.com/littlevgl/lvgl into dev 2021-02-26 09:51:50 +01:00
Gabor Kiss-Vamosi
0ab6433c66 assign theme to the display + minor fixes 2021-02-26 09:51:30 +01:00
Gabor Kiss-Vamosi
8fdefa8508 fix(chart) fix warning 2021-02-25 15:38:25 +01:00
Gabor Kiss-Vamosi
c846a37adc feat(chart): trigger draw hook event on the bars of chart 2021-02-25 15:17:44 +01:00
Xiang Xiao
8c34c1533e
Fix memory module issue (#2095)
* fix(mem): reutrn NULL in lv_mem_buf_get if allocation fail

* fix(mem): refine the loop in alloc_core to simplify the logic

* fix(mem): remove the lv_mem_buf declaration from lv_mem.h

since it already declared in gc.h
2021-02-25 14:59:50 +01:00
Xiang Xiao
9a2008bfb9
Fix minor issues found in timer module (#2094)
* fix(timer): remove LV_GC_INCLUDE inclusion since it doesn't need anymore

please see commit d6ca15a74923f2e86ce1e4ee6ee83bb2bbc887b8 for more info

* fix(timer): implement lv_timer_create directly

and call it in lv_timer_create_basic

* fix(timer): exclude the return value computing from the idle time

and change handler_start and time_till_next to local variables

* fix(timer): restart the timer process loop correctly

* fix(timer): skip the count pause timer into next timeout

it's wrong to check repeat_count since the timer is always
removed from the list once the repeat_count change to zero

* fix(timer): remove zero task_deleted and task_created in lv_task_exec

since the loop in lv_task_handler already do the same thing
2021-02-25 14:58:07 +01:00
Gabor Kiss-Vamosi
8a7f9cb131 fix(style): use struct as color filter instead of pure callback for Micropython compatibility 2021-02-24 15:12:36 +01:00
X-Ryl669
45d6fd2397
Port of the fast colorwheel change to v8 (#2092) 2021-02-24 14:16:56 +01:00
Gabor Kiss-Vamosi
d2d8f973b0 format(btnmatrix) change paramater name in lv_btnmatrix_set_selected_btn 2021-02-24 14:14:46 +01:00
Gabor Kiss-Vamosi
8004058463 minor fixes 2021-02-24 10:07:54 +01:00
Gabor Kiss-Vamosi
e1457c968c Merge branch 'dev' of https://github.com/littlevgl/lvgl into dev 2021-02-24 10:01:29 +01:00
Gabor Kiss-Vamosi
a2b29c091f fix: follow changes of lvgl in examples and extra widgets 2021-02-24 10:00:54 +01:00
Gabor Kiss-Vamosi
0aff24505e fix(theme): add theme perssed and focused styles to table 2021-02-24 09:59:55 +01:00
Gabor Kiss-Vamosi
8f89740612 fix(scroll): fix elastic scrolling on the first and last object with snapping 2021-02-24 09:59:02 +01:00
Gabor Kiss-Vamosi
2ddd485284 fix(obj): fix lv_obj_has_flag when ORed values are used 2021-02-24 09:57:36 +01:00
Gabor Kiss-Vamosi
027a82dc35 feat(table): add support the get the selected cell + keypad navigation 2021-02-24 09:56:44 +01:00
Gabor Kiss-Vamosi
ba89ea35a2 refactor(btnmatrix): use the seleceted word instead of activated 2021-02-24 09:55:47 +01:00
Gabor Kiss-Vamosi
8cf129b4af fix(btnmatrix): join active, pressed and focused button into active button 2021-02-24 05:10:48 +01:00