refactor: disp->display, res->result/resolution, hor/ver->horizontal/vertical, txt->text, angle->rotation, zoom->scale
This commit is contained in:
@@ -32,7 +32,7 @@ void lv_example_dropdown_3(void)
|
||||
/*Use a custom image as down icon and flip it when the list is opened*/
|
||||
LV_IMAGE_DECLARE(img_caret_down)
|
||||
lv_dropdown_set_symbol(dropdown, &img_caret_down);
|
||||
lv_obj_set_style_transform_angle(dropdown, 1800, LV_PART_INDICATOR | LV_STATE_CHECKED);
|
||||
lv_obj_set_style_transform_rotation(dropdown, 1800, LV_PART_INDICATOR | LV_STATE_CHECKED);
|
||||
|
||||
/*In a menu we don't need to show the last clicked item*/
|
||||
lv_dropdown_set_selected_highlight(dropdown, false);
|
||||
|
||||
@@ -37,7 +37,7 @@ dropdown.set_text("Menu")
|
||||
# Use a custom image as down icon and flip it when the list is opened
|
||||
# LV_IMAGE_DECLARE(image_caret_down)
|
||||
dropdown.set_symbol(image_caret_down_argb)
|
||||
dropdown.set_style_transform_angle(1800, lv.PART.INDICATOR | lv.STATE.CHECKED)
|
||||
dropdown.set_style_transform_rotation(1800, lv.PART.INDICATOR | lv.STATE.CHECKED)
|
||||
|
||||
# In a menu we don't need to show the last clicked item
|
||||
dropdown.set_selected_highlight(False)
|
||||
|
||||
Reference in New Issue
Block a user