mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +00:00
Fix(gui) Cursor style for ESP8266
This commit is contained in:
parent
6fd9811e77
commit
2f23f5b017
@ -321,9 +321,9 @@ void guiSetup()
|
||||
#else
|
||||
cursor = lv_obj_create(mouse_layer); // show cursor object on every page
|
||||
lv_obj_set_size(cursor, 9, 9);
|
||||
lv_obj_set_style_local_radius(cursor, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT, LV_RADIUS_CIRCLE);
|
||||
lv_obj_set_style_local_bg_color(cursor, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT, LV_COLOR_RED);
|
||||
lv_obj_set_style_bg_opa(cursor, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT, LV_OPA_COVER);
|
||||
lv_obj_set_style_radius(cursor, LV_RADIUS_CIRCLE, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(cursor, LV_COLOR_RED, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(cursor, LV_OPA_COVER, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT);
|
||||
#endif
|
||||
lv_indev_set_cursor(mouse_indev, cursor); /*Connect the image object to the driver*/
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user