fix(example) minor fixes
This commit is contained in:
@@ -11,14 +11,14 @@ Simple Button matrix
|
|||||||
Custom buttons
|
Custom buttons
|
||||||
""""""""""""""""""""""
|
""""""""""""""""""""""
|
||||||
|
|
||||||
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_1
|
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_2
|
||||||
:language: c
|
:language: c
|
||||||
|
|
||||||
|
|
||||||
Pagination
|
Pagination
|
||||||
""""""""""""""""""""""
|
""""""""""""""""""""""
|
||||||
|
|
||||||
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_1
|
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_3
|
||||||
:language: c
|
:language: c
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ void lv_example_dropdown_3(void)
|
|||||||
/*Use a custom image as down icon and flip it when the list is opened*/
|
/*Use a custom image as down icon and flip it when the list is opened*/
|
||||||
LV_IMG_DECLARE(img_caret_down)
|
LV_IMG_DECLARE(img_caret_down)
|
||||||
lv_dropdown_set_symbol(dropdown, &img_caret_down);
|
lv_dropdown_set_symbol(dropdown, &img_caret_down);
|
||||||
lv_obj_set_style_transform_angle(dropdown, 1800, LV_STATE_CHECKED);
|
lv_obj_set_style_transform_angle(dropdown, 1800, LV_PART_INDICATOR | LV_STATE_CHECKED);
|
||||||
|
|
||||||
/*In a menu we don't need to show the last clicked item*/
|
/*In a menu we don't need to show the last clicked item*/
|
||||||
lv_dropdown_set_selected_highlight(dropdown, false);
|
lv_dropdown_set_selected_highlight(dropdown, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user