Home
last modified time | relevance | path

Searched refs:th (Results 1 – 25 of 28) sorted by relevance

12

/lvgl-latest/src/themes/
Dlv_theme.c25 static void apply_theme(lv_theme_t * th, lv_obj_t * obj);
26 static void apply_theme_recursion(lv_theme_t * th, lv_obj_t * obj);
48 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_apply() local
49 if(th == NULL) return; in lv_theme_apply()
53 apply_theme_recursion(th, obj); /*Apply the theme including the base theme(s)*/ in lv_theme_apply()
68 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_small() local
69 return th ? th->font_small : LV_FONT_DEFAULT; in lv_theme_get_font_small()
74 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_normal() local
75 return th ? th->font_normal : LV_FONT_DEFAULT; in lv_theme_get_font_normal()
80 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_large() local
[all …]
/lvgl-latest/demos/high_res/
Dlv_demo_high_res_home.c64 …lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, &c->imgs… in lv_demo_high_res_home()
96 lv_subject_add_observer_obj(&c->th, theme_observer_accent_span_cb, date, day_and_month); in lv_demo_high_res_home()
104 lv_subject_add_observer_obj(&c->th, theme_observer_accent_span_cb, time, minute); in lv_demo_high_res_home()
191 …if(((const lv_demo_high_res_theme_t *) lv_subject_get_pointer(&c->th)) == &lv_demo_high_res_theme_… in lv_demo_high_res_home()
194 …lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, light_theme_icon, in lv_demo_high_res_home()
200 …if(((const lv_demo_high_res_theme_t *) lv_subject_get_pointer(&c->th)) == &lv_demo_high_res_theme_… in lv_demo_high_res_home()
203 … lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, dark_theme_icon, in lv_demo_high_res_home()
221 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(subject); in theme_observer_accent_span_cb() local
223 lv_style_set_text_color(&span->style, th->accent); in theme_observer_accent_span_cb()
275 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(&c->th); in set_light_theme_event_cb() local
[all …]
Dlv_demo_high_res_util.c277 lv_subject_init_pointer(&c->th, (void *)&lv_demo_high_res_theme_dark); in lv_demo_high_res_base_obj_create()
278 c->th.user_data = c; in lv_demo_high_res_base_obj_create()
279 lv_subject_add_observer(&c->th, theme_observer_cb, c); in lv_demo_high_res_base_obj_create()
406 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(subject); in lv_demo_high_res_theme_observer_image_src_cb() local
408 if(th == &lv_demo_high_res_theme_light) { in lv_demo_high_res_theme_observer_image_src_cb()
421 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(subject); in lv_demo_high_res_theme_observer_obj_bg_image_src_cb() local
423 if(th == &lv_demo_high_res_theme_light) { in lv_demo_high_res_theme_observer_obj_bg_image_src_cb()
524 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(subject); in theme_observer_cb() local
525 …const lv_demo_high_res_theme_t * th_other = th == &lv_demo_high_res_theme_light ? &lv_demo_high_re… in theme_observer_cb()
530 lv_color_t color = i == STYLE_COLOR_BASE ? th->base : th->accent; in theme_observer_cb()
[all …]
Dlv_demo_high_res_app_smart_meter.c84 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_smart_meter()
153 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, part, in create_widget1_part()
242 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(&c->th); in widget1_open_part1_anim_cb() local
243 if(th == &lv_demo_high_res_theme_dark) { in widget1_open_part1_anim_cb()
246 lv_obj_set_style_text_color(lv_obj_get_child(part1, 0), th == &lv_demo_high_res_theme_light in widget1_open_part1_anim_cb()
248 lv_obj_set_style_text_color(lv_obj_get_child(part2, 0), th == &lv_demo_high_res_theme_light in widget1_open_part1_anim_cb()
267 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(&c->th); in widget1_open_part2_anim_cb() local
268 if(th == &lv_demo_high_res_theme_dark) { in widget1_open_part2_anim_cb()
271 lv_obj_set_style_text_color(lv_obj_get_child(part1, 0), th == &lv_demo_high_res_theme_light in widget1_open_part2_anim_cb()
273 lv_obj_set_style_text_color(lv_obj_get_child(part2, 0), th == &lv_demo_high_res_theme_light in widget1_open_part2_anim_cb()
[all …]
Dlv_demo_high_res_app_smart_home.c66 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_smart_home()
290 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget2()
338 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget3()
418 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget4()
Dlv_demo_high_res_private.h190 lv_subject_t th; member
Dlv_demo_high_res_app_thermostat.c71 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_thermostat()
149 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget1()
315 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget2()
489 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget3()
Dlv_demo_high_res_app_ev_charging.c86 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_ev_charging()
247 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget1()
341 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget2()
Dlv_demo_high_res_app_about.c61 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_about()
/lvgl-latest/examples/styles/
Dlv_example_style_14.c9 static void new_theme_apply_cb(lv_theme_t * th, lv_obj_t * obj) in new_theme_apply_cb() argument
11 LV_UNUSED(th); in new_theme_apply_cb()
/lvgl-latest/docs/details/widgets/
Dtileview.rst42 tile on the ``col_id``\ -th column and ``row_id``\ -th row. ``dir`` can be
/lvgl-latest/src/libs/gif/
Dgifdec.h42 uint16_t tw, uint16_t th, uint8_t cw, uint8_t ch,
Dgifdec.c187 uint16_t tx, ty, tw, th; in read_plain_text_ext() local
194 th = read_num(gif); in read_plain_text_ext()
200 gif->plain_text(gif, tx, ty, tw, th, cw, ch, fg, bg); in read_plain_text_ext()
/lvgl-latest/src/libs/thorvg/
DtvgPaint.cpp328 auto th = 0.0f; in bounds() local
330 PAINT_METHOD(ret, bounds(&tx, &ty, &tw, &th, stroking)); in bounds()
333 Point pt[4] = {{tx, ty}, {tx + tw, ty}, {tx + tw, ty + th}, {tx, ty + th}}; in bounds()
/lvgl-latest/src/themes/simple/
Dlv_theme_simple.c63 static void theme_apply(lv_theme_t * th, lv_obj_t * obj);
205 static void theme_apply(lv_theme_t * th, lv_obj_t * obj) in theme_apply() argument
207 LV_UNUSED(th); in theme_apply()
/lvgl-latest/src/widgets/imagebutton/
Dlv_imagebutton.c201 int32_t th = lv_obj_get_style_transform_height(obj, LV_PART_MAIN); in draw_main() local
204 lv_area_increase(&coords, tw, th); in draw_main()
/lvgl-latest/src/misc/
Dlv_area.c128 int32_t th = a2_p->y1 - a1_p->y1; in lv_area_diff() local
129 if(th > 0) { in lv_area_diff()
133 n.y2 = a1_p->y1 + th; in lv_area_diff()
/lvgl-latest/docs/_static/css/
Dcustom.css1 table, th, td { selector
/lvgl-latest/src/display/
Dlv_display.h509 void lv_display_set_theme(lv_display_t * disp, lv_theme_t * th);
Dlv_display.c877 void lv_display_set_theme(lv_display_t * disp, lv_theme_t * th) in lv_display_set_theme() argument
885 disp->theme = th; in lv_display_set_theme()
/lvgl-latest/src/themes/mono/
Dlv_theme_mono.c72 static void theme_apply(lv_theme_t * th, lv_obj_t * obj);
232 static void theme_apply(lv_theme_t * th, lv_obj_t * obj) in theme_apply() argument
234 LV_UNUSED(th); in theme_apply()
/lvgl-latest/docs/details/integration/driver/display/
Dlcd_stm32_guide.rst251 …display buffers here. This example uses a double buffering scheme with 1/10th size partial buffers…
268 …/* Allocate draw buffers on the heap. In this example we use two partial buffers of 1/10th size of…
/lvgl-latest/src/themes/default/
Dlv_theme_default.c185 static void theme_apply(lv_theme_t * th, lv_obj_t * obj);
726 static void theme_apply(lv_theme_t * th, lv_obj_t * obj) in theme_apply() argument
728 LV_UNUSED(th); in theme_apply()
/lvgl-latest/docs/details/main-components/
Ddisplay.rst650 …s. For example, if the draw buffer is 1/10th the size of the screen and there are 2 tiles, then 1/…
/lvgl-latest/docs/details/base-widget/styles/
Dstyle.rst536 …lv_theme_t * th = lv_theme_default_init(display, /* Use DPI, size, etc. from this …
544 lv_display_set_theme(display, th); /* Assign theme to display */

12