Lines Matching refs:obj
50 static void theme_apply(lv_theme_t * th, lv_obj_t * obj);
169 static void theme_apply(lv_theme_t * th, lv_obj_t * obj) in theme_apply() argument
173 if(lv_obj_get_parent(obj) == NULL) { in theme_apply()
174 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
175 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
179 if(lv_obj_check_type(obj, &lv_obj_class)) { in theme_apply()
181 lv_obj_t * parent = lv_obj_get_parent(obj); in theme_apply()
184 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
189 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
190 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
197 if(lv_obj_get_index(obj) == 0 && lv_obj_check_type(lv_obj_get_parent(obj), &lv_win_class)) { in theme_apply()
198 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
202 … else if(lv_obj_get_index(obj) == 1 && lv_obj_check_type(lv_obj_get_parent(obj), &lv_win_class)) { in theme_apply()
203 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
204 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
208 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
209 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
212 else if(lv_obj_check_type(obj, &lv_btn_class)) { in theme_apply()
213 lv_obj_add_style(obj, &styles->dark, 0); in theme_apply()
218 else if(lv_obj_check_type(obj, &lv_btnmatrix_class)) { in theme_apply()
220 if(lv_obj_check_type(lv_obj_get_parent(obj), &lv_msgbox_class)) { in theme_apply()
221 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
226 if(lv_obj_check_type(lv_obj_get_parent(obj), &lv_tabview_class)) { in theme_apply()
227 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
231 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
232 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
237 else if(lv_obj_check_type(obj, &lv_bar_class)) { in theme_apply()
238 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
239 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR); in theme_apply()
244 else if(lv_obj_check_type(obj, &lv_slider_class)) { in theme_apply()
245 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
246 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR); in theme_apply()
247 lv_obj_add_style(obj, &styles->dim, LV_PART_KNOB); in theme_apply()
252 else if(lv_obj_check_type(obj, &lv_table_class)) { in theme_apply()
253 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
254 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
259 else if(lv_obj_check_type(obj, &lv_checkbox_class)) { in theme_apply()
260 lv_obj_add_style(obj, &styles->light, LV_PART_INDICATOR); in theme_apply()
261 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply()
266 else if(lv_obj_check_type(obj, &lv_switch_class)) { in theme_apply()
267 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
268 lv_obj_add_style(obj, &styles->dim, LV_PART_KNOB); in theme_apply()
273 else if(lv_obj_check_type(obj, &lv_chart_class)) { in theme_apply()
274 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
275 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
276 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
277 lv_obj_add_style(obj, &styles->dark, LV_PART_TICKS); in theme_apply()
278 lv_obj_add_style(obj, &styles->dark, LV_PART_CURSOR); in theme_apply()
283 else if(lv_obj_check_type(obj, &lv_roller_class)) { in theme_apply()
284 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
285 lv_obj_add_style(obj, &styles->dark, LV_PART_SELECTED); in theme_apply()
290 else if(lv_obj_check_type(obj, &lv_dropdown_class)) { in theme_apply()
291 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
293 else if(lv_obj_check_type(obj, &lv_dropdownlist_class)) { in theme_apply()
294 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
295 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
296 lv_obj_add_style(obj, &styles->light, LV_PART_SELECTED); in theme_apply()
297 lv_obj_add_style(obj, &styles->dark, LV_PART_SELECTED | LV_STATE_CHECKED); in theme_apply()
302 else if(lv_obj_check_type(obj, &lv_arc_class)) { in theme_apply()
303 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
304 lv_obj_add_style(obj, &styles->transp, 0); in theme_apply()
305 lv_obj_add_style(obj, &styles->arc_line, 0); in theme_apply()
306 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR); in theme_apply()
307 lv_obj_add_style(obj, &styles->arc_line, LV_PART_INDICATOR); in theme_apply()
308 lv_obj_add_style(obj, &styles->dim, LV_PART_KNOB); in theme_apply()
309 lv_obj_add_style(obj, &styles->arc_knob, LV_PART_KNOB); in theme_apply()
314 else if(lv_obj_check_type(obj, &lv_spinner_class)) { in theme_apply()
315 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
316 lv_obj_add_style(obj, &styles->transp, 0); in theme_apply()
317 lv_obj_add_style(obj, &styles->arc_line, 0); in theme_apply()
318 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR); in theme_apply()
319 lv_obj_add_style(obj, &styles->arc_line, LV_PART_INDICATOR); in theme_apply()
324 else if(lv_obj_check_type(obj, &lv_colorwheel_class)) { in theme_apply()
325 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
326 lv_obj_add_style(obj, &styles->transp, 0); in theme_apply()
327 lv_obj_add_style(obj, &styles->arc_line, 0); in theme_apply()
328 lv_obj_add_style(obj, &styles->dim, LV_PART_KNOB); in theme_apply()
329 lv_obj_add_style(obj, &styles->arc_knob, LV_PART_KNOB); in theme_apply()
334 else if(lv_obj_check_type(obj, &lv_meter_class)) { in theme_apply()
335 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
340 else if(lv_obj_check_type(obj, &lv_textarea_class)) { in theme_apply()
341 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
342 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
343 lv_obj_add_style(obj, &styles->ta_cursor, LV_PART_CURSOR | LV_STATE_FOCUSED); in theme_apply()
348 else if(lv_obj_check_type(obj, &lv_calendar_class)) { in theme_apply()
349 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
354 else if(lv_obj_check_type(obj, &lv_keyboard_class)) { in theme_apply()
355 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
356 lv_obj_add_style(obj, &styles->white, LV_PART_ITEMS); in theme_apply()
357 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
361 else if(lv_obj_check_type(obj, &lv_list_class)) { in theme_apply()
362 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
363 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
366 else if(lv_obj_check_type(obj, &lv_list_text_class)) { in theme_apply()
369 else if(lv_obj_check_type(obj, &lv_list_btn_class)) { in theme_apply()
370 lv_obj_add_style(obj, &styles->dark, 0); in theme_apply()
375 else if(lv_obj_check_type(obj, &lv_msgbox_class)) { in theme_apply()
376 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
381 else if(lv_obj_check_type(obj, &lv_spinbox_class)) { in theme_apply()
382 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
383 lv_obj_add_style(obj, &styles->dark, LV_PART_CURSOR); in theme_apply()
387 else if(lv_obj_check_type(obj, &lv_tileview_class)) { in theme_apply()
388 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
389 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
391 else if(lv_obj_check_type(obj, &lv_tileview_tile_class)) { in theme_apply()
392 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
397 else if(lv_obj_check_type(obj, &lv_colorwheel_class)) { in theme_apply()
398 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
399 lv_obj_add_style(obj, &styles->light, LV_PART_KNOB); in theme_apply()
404 else if(lv_obj_check_type(obj, &lv_led_class)) { in theme_apply()
405 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()