Lines Matching refs:bar
326 lv_obj_t * bar = lv_bar_create(lv_screen_active()); in styled_bar_create() local
327 if(ver) lv_obj_set_size(bar, 20, 100); in styled_bar_create()
328 else lv_obj_set_size(bar, 100, 20); in styled_bar_create()
329 lv_bar_set_range(bar, 0, 100); in styled_bar_create()
330 lv_bar_set_mode(bar, LV_BAR_MODE_RANGE); in styled_bar_create()
331 lv_bar_set_value(bar, end_value, LV_ANIM_OFF); in styled_bar_create()
332 lv_bar_set_start_value(bar, start_value, LV_ANIM_OFF); in styled_bar_create()
334 lv_obj_set_style_bg_opa(bar, 255, LV_PART_MAIN); in styled_bar_create()
335 lv_obj_set_style_bg_color(bar, lv_color_hex3(0x0ff), LV_PART_MAIN); in styled_bar_create()
336 lv_obj_set_style_radius(bar, bg_radius, LV_PART_MAIN); in styled_bar_create()
337 lv_obj_set_style_pad_all(bar, bg_pad, LV_PART_MAIN); in styled_bar_create()
339 lv_obj_set_style_bg_opa(bar, LV_OPA_70, LV_PART_INDICATOR); in styled_bar_create()
340 lv_obj_set_style_bg_color(bar, lv_color_hex3(0xf0f), LV_PART_INDICATOR); in styled_bar_create()
341 lv_obj_set_style_bg_grad_color(bar, lv_color_hex3(0x8f8), LV_PART_INDICATOR); in styled_bar_create()
342 lv_obj_set_style_bg_grad_dir(bar, grad_dir, LV_PART_INDICATOR); in styled_bar_create()
344 lv_obj_set_style_border_width(bar, 2, LV_PART_INDICATOR); in styled_bar_create()
345 lv_obj_set_style_border_color(bar, lv_color_hex3(0x0f0), LV_PART_INDICATOR); in styled_bar_create()
346 lv_obj_set_style_border_opa(bar, LV_OPA_70, LV_PART_INDICATOR); in styled_bar_create()
347 lv_obj_set_style_outline_width(bar, 2, LV_PART_INDICATOR); in styled_bar_create()
348 lv_obj_set_style_outline_pad(bar, 4, LV_PART_INDICATOR); in styled_bar_create()
349 lv_obj_set_style_outline_color(bar, lv_color_hex3(0xff0), LV_PART_INDICATOR); in styled_bar_create()
350 lv_obj_set_style_outline_opa(bar, LV_OPA_70, LV_PART_INDICATOR); in styled_bar_create()
351 lv_obj_set_style_shadow_width(bar, 20, LV_PART_INDICATOR); in styled_bar_create()
352 lv_obj_set_style_shadow_spread(bar, 5, LV_PART_INDICATOR); in styled_bar_create()
353 lv_obj_set_style_shadow_color(bar, lv_color_hex3(0xf00), LV_PART_INDICATOR); in styled_bar_create()
354 lv_obj_set_style_shadow_opa(bar, LV_OPA_70, LV_PART_INDICATOR); in styled_bar_create()
355 lv_obj_set_style_radius(bar, indic_radius, LV_PART_INDICATOR); in styled_bar_create()
357 return bar; in styled_bar_create()
407 lv_obj_t * bar = lv_bar_create(g_active_screen); in bar_create_orientation() local
408 lv_bar_set_orientation(bar, orientation); in bar_create_orientation()
409 lv_obj_set_size(bar, w, h); in bar_create_orientation()
410 lv_bar_set_value(bar, 30, LV_ANIM_OFF); in bar_create_orientation()
412 return bar; in bar_create_orientation()