mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
minor fixes
This commit is contained in:
parent
033b42fa3c
commit
093b522738
@ -135,7 +135,6 @@ lv_obj_t * lv_gauge_create(lv_obj_t * par, const lv_obj_t * copy)
|
|||||||
void lv_gauge_set_needle_count(lv_obj_t * gauge, uint8_t needle_cnt, const lv_color_t colors[])
|
void lv_gauge_set_needle_count(lv_obj_t * gauge, uint8_t needle_cnt, const lv_color_t colors[])
|
||||||
{
|
{
|
||||||
LV_ASSERT_OBJ(gauge, LV_OBJX_NAME);
|
LV_ASSERT_OBJ(gauge, LV_OBJX_NAME);
|
||||||
LV_ASSERT_NULL(colors);
|
|
||||||
|
|
||||||
lv_gauge_ext_t * ext = lv_obj_get_ext_attr(gauge);
|
lv_gauge_ext_t * ext = lv_obj_get_ext_attr(gauge);
|
||||||
|
|
||||||
|
@ -220,8 +220,8 @@ lv_obj_t * lv_tabview_add_tab(lv_obj_t * tabview, const char * name)
|
|||||||
lv_obj_t * h = lv_page_create(ext->content, NULL);
|
lv_obj_t * h = lv_page_create(ext->content, NULL);
|
||||||
lv_obj_set_size(h, lv_obj_get_width(tabview), lv_obj_get_height(ext->content));
|
lv_obj_set_size(h, lv_obj_get_width(tabview), lv_obj_get_height(ext->content));
|
||||||
lv_page_set_sb_mode(h, LV_SB_MODE_AUTO);
|
lv_page_set_sb_mode(h, LV_SB_MODE_AUTO);
|
||||||
lv_page_set_style(h, LV_PAGE_STYLE_BG, &lv_style_pretty);
|
lv_page_set_style(h, LV_PAGE_STYLE_BG, &lv_style_transp_tight);
|
||||||
lv_page_set_style(h, LV_PAGE_STYLE_SCRL, &lv_style_pretty_color);
|
lv_page_set_style(h, LV_PAGE_STYLE_SCRL, &lv_style_transp);
|
||||||
lv_page_set_scroll_propagation(h, true);
|
lv_page_set_scroll_propagation(h, true);
|
||||||
|
|
||||||
if(page_signal == NULL) page_signal = lv_obj_get_signal_cb(h);
|
if(page_signal == NULL) page_signal = lv_obj_get_signal_cb(h);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user