Home
last modified time | relevance | path

Searched refs:hour_label (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/demos/smartwatch/
Dlv_demo_smartwatch_weather.c196 lv_obj_t * hour_label = lv_label_create(panel); in lv_demo_smartwatch_weather_add_hourly() local
197 lv_obj_set_width(hour_label, 80); in lv_demo_smartwatch_weather_add_hourly()
198 lv_obj_set_height(hour_label, LV_SIZE_CONTENT); in lv_demo_smartwatch_weather_add_hourly()
199 lv_obj_set_align(hour_label, LV_ALIGN_CENTER); in lv_demo_smartwatch_weather_add_hourly()
200 lv_label_set_text_fmt(hour_label, info ? "Hour" : "%02d:00", hour); in lv_demo_smartwatch_weather_add_hourly()
201 lv_obj_set_style_text_align(hour_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT); in lv_demo_smartwatch_weather_add_hourly()
202 lv_obj_set_style_text_font(hour_label, &lv_font_montserrat_16, LV_PART_MAIN | LV_STATE_DEFAULT); in lv_demo_smartwatch_weather_add_hourly()
203 …lv_obj_set_style_border_color(hour_label, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT); in lv_demo_smartwatch_weather_add_hourly()
204 lv_obj_set_style_border_opa(hour_label, 255, LV_PART_MAIN | LV_STATE_DEFAULT); in lv_demo_smartwatch_weather_add_hourly()
205 lv_obj_set_style_border_width(hour_label, 1, LV_PART_MAIN | LV_STATE_DEFAULT); in lv_demo_smartwatch_weather_add_hourly()
[all …]
Dlv_demo_smartwatch_home.c51 static lv_obj_t * hour_label; variable
177 lv_label_set_text_fmt(hour_label, "%02d", hour); in lv_demo_smartwatch_home_set_time()
326 hour_label = lv_label_create(clock_screen); in create_screen_home()
327 lv_obj_set_width(hour_label, 151); in create_screen_home()
328 lv_obj_set_height(hour_label, LV_SIZE_CONTENT); in create_screen_home()
329 lv_obj_set_x(hour_label, -89); in create_screen_home()
330 lv_obj_set_y(hour_label, -25); in create_screen_home()
331 lv_obj_set_align(hour_label, LV_ALIGN_CENTER); in create_screen_home()
332 lv_label_set_text(hour_label, "20"); in create_screen_home()
333 lv_obj_set_style_text_align(hour_label, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN | LV_STATE_DEFAULT); in create_screen_home()
[all …]