dashboard: move coolant gauge up and center icon
This commit is contained in:
@@ -1253,12 +1253,12 @@ static void create_overland_overview_screen()
|
||||
lv_obj_t *coolant_icon = lv_img_create(vehicle_card);
|
||||
lv_img_set_src(coolant_icon, &thermometer_water);
|
||||
lv_img_set_zoom(coolant_icon, 100);
|
||||
lv_obj_align(coolant_icon, LV_ALIGN_TOP_LEFT, 24, 20);
|
||||
lv_obj_align(coolant_icon, LV_ALIGN_TOP_MID, 0, 150);
|
||||
|
||||
#if LV_USE_METER
|
||||
vehicle_coolant_meter = lv_meter_create(vehicle_card);
|
||||
lv_obj_set_size(vehicle_coolant_meter, 252, 252);
|
||||
lv_obj_align(vehicle_coolant_meter, LV_ALIGN_TOP_MID, 0, 6);
|
||||
lv_obj_align(vehicle_coolant_meter, LV_ALIGN_TOP_MID, 0, 0);
|
||||
lv_obj_set_style_bg_opa(vehicle_coolant_meter, LV_OPA_TRANSP, 0);
|
||||
lv_obj_set_style_border_width(vehicle_coolant_meter, 0, 0);
|
||||
lv_obj_clear_flag(vehicle_coolant_meter, LV_OBJ_FLAG_SCROLLABLE);
|
||||
@@ -1286,7 +1286,7 @@ static void create_overland_overview_screen()
|
||||
lv_obj_set_style_text_font(vehicle_coolant_value_label, &lv_font_montserrat_40, 0);
|
||||
lv_obj_set_width(vehicle_coolant_value_label, 120);
|
||||
lv_obj_set_style_text_align(vehicle_coolant_value_label, LV_TEXT_ALIGN_CENTER, 0);
|
||||
lv_obj_align(vehicle_coolant_value_label, LV_ALIGN_TOP_MID, 0, 124);
|
||||
lv_obj_align(vehicle_coolant_value_label, LV_ALIGN_TOP_MID, 0, 109);
|
||||
|
||||
lv_obj_t *fuel_icon = lv_img_create(vehicle_card);
|
||||
lv_img_set_src(fuel_icon, &gas_station);
|
||||
|
||||
Reference in New Issue
Block a user