Lines Matching refs:obj
167 static void theme_apply(lv_theme_t * th, lv_obj_t * obj);
694 static void theme_apply(lv_theme_t * th, lv_obj_t * obj) in theme_apply() argument
698 if(lv_obj_get_parent(obj) == NULL) { in theme_apply()
699 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
700 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
701 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
705 if(lv_obj_check_type(obj, &lv_obj_class)) { in theme_apply()
707 lv_obj_t * parent = lv_obj_get_parent(obj); in theme_apply()
714 lv_obj_add_style(obj, &styles->pad_normal, 0); in theme_apply()
715 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
716 … lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
723 if(lv_obj_get_index(obj) == 0 && lv_obj_check_type(lv_obj_get_parent(obj), &lv_win_class)) { in theme_apply()
724 lv_obj_add_style(obj, &styles->bg_color_grey, 0); in theme_apply()
725 lv_obj_add_style(obj, &styles->pad_tiny, 0); in theme_apply()
729 … else if(lv_obj_get_index(obj) == 1 && lv_obj_check_type(lv_obj_get_parent(obj), &lv_win_class)) { in theme_apply()
730 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
731 lv_obj_add_style(obj, &styles->pad_normal, 0); in theme_apply()
732 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
733 … lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
739 if(lv_obj_check_type(lv_obj_get_parent(obj), &lv_calendar_class)) { in theme_apply()
745 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
746 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
747 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
750 else if(lv_obj_check_type(obj, &lv_btn_class)) { in theme_apply()
751 lv_obj_add_style(obj, &styles->btn, 0); in theme_apply()
752 lv_obj_add_style(obj, &styles->bg_color_primary, 0); in theme_apply()
753 lv_obj_add_style(obj, &styles->transition_delayed, 0); in theme_apply()
754 lv_obj_add_style(obj, &styles->pressed, LV_STATE_PRESSED); in theme_apply()
755 lv_obj_add_style(obj, &styles->transition_normal, LV_STATE_PRESSED); in theme_apply()
756 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
758 lv_obj_add_style(obj, &styles->grow, LV_STATE_PRESSED); in theme_apply()
760 lv_obj_add_style(obj, &styles->bg_color_secondary, LV_STATE_CHECKED); in theme_apply()
761 lv_obj_add_style(obj, &styles->disabled, LV_STATE_DISABLED); in theme_apply()
764 if(lv_obj_check_type(lv_obj_get_parent(obj), &lv_menu_sidebar_header_cont_class) || in theme_apply()
765 lv_obj_check_type(lv_obj_get_parent(obj), &lv_menu_main_header_cont_class)) { in theme_apply()
766 lv_obj_add_style(obj, &styles->menu_header_btn, 0); in theme_apply()
767 lv_obj_add_style(obj, &styles->menu_pressed, LV_STATE_PRESSED); in theme_apply()
774 else if(lv_obj_check_type(obj, &lv_line_class)) { in theme_apply()
775 lv_obj_add_style(obj, &styles->line, 0); in theme_apply()
780 else if(lv_obj_check_type(obj, &lv_btnmatrix_class)) { in theme_apply()
782 if(lv_obj_check_type(lv_obj_get_parent(obj), &lv_msgbox_class)) { in theme_apply()
783 lv_obj_add_style(obj, &styles->msgbox_btn_bg, 0); in theme_apply()
784 lv_obj_add_style(obj, &styles->pad_gap, 0); in theme_apply()
785 lv_obj_add_style(obj, &styles->btn, LV_PART_ITEMS); in theme_apply()
786 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
787 lv_obj_add_style(obj, &styles->disabled, LV_PART_ITEMS | LV_STATE_DISABLED); in theme_apply()
788 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
789 … lv_obj_add_style(obj, &styles->bg_color_primary_muted, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
790 … lv_obj_add_style(obj, &styles->bg_color_secondary_muted, LV_PART_ITEMS | LV_STATE_EDITED); in theme_apply()
795 if(lv_obj_check_type(lv_obj_get_parent(obj), &lv_tabview_class)) { in theme_apply()
796 lv_obj_add_style(obj, &styles->bg_color_white, 0); in theme_apply()
797 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
798 lv_obj_add_style(obj, &styles->tab_bg_focus, LV_STATE_FOCUS_KEY); in theme_apply()
799 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
800 … lv_obj_add_style(obj, &styles->bg_color_primary_muted, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
801 lv_obj_add_style(obj, &styles->tab_btn, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
802 lv_obj_add_style(obj, &styles->outline_primary, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
803 lv_obj_add_style(obj, &styles->outline_secondary, LV_PART_ITEMS | LV_STATE_EDITED); in theme_apply()
804 lv_obj_add_style(obj, &styles->tab_bg_focus, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
810 if(lv_obj_check_type(lv_obj_get_parent(obj), &lv_calendar_class)) { in theme_apply()
811 lv_obj_add_style(obj, &styles->calendar_btnm_bg, 0); in theme_apply()
812 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
813 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
814 lv_obj_add_style(obj, &styles->calendar_btnm_day, LV_PART_ITEMS); in theme_apply()
815 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
816 lv_obj_add_style(obj, &styles->disabled, LV_PART_ITEMS | LV_STATE_DISABLED); in theme_apply()
817 lv_obj_add_style(obj, &styles->outline_primary, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
818 lv_obj_add_style(obj, &styles->outline_secondary, LV_PART_ITEMS | LV_STATE_EDITED); in theme_apply()
822 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
823 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
824 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
825 lv_obj_add_style(obj, &styles->btn, LV_PART_ITEMS); in theme_apply()
826 lv_obj_add_style(obj, &styles->disabled, LV_PART_ITEMS | LV_STATE_DISABLED); in theme_apply()
827 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
828 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
829 lv_obj_add_style(obj, &styles->outline_primary, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
830 lv_obj_add_style(obj, &styles->outline_secondary, LV_PART_ITEMS | LV_STATE_EDITED); in theme_apply()
835 else if(lv_obj_check_type(obj, &lv_bar_class)) { in theme_apply()
836 lv_obj_add_style(obj, &styles->bg_color_primary_muted, 0); in theme_apply()
837 lv_obj_add_style(obj, &styles->circle, 0); in theme_apply()
838 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
839 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
840 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_INDICATOR); in theme_apply()
841 lv_obj_add_style(obj, &styles->circle, LV_PART_INDICATOR); in theme_apply()
846 else if(lv_obj_check_type(obj, &lv_slider_class)) { in theme_apply()
847 lv_obj_add_style(obj, &styles->bg_color_primary_muted, 0); in theme_apply()
848 lv_obj_add_style(obj, &styles->circle, 0); in theme_apply()
849 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
850 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
851 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_INDICATOR); in theme_apply()
852 lv_obj_add_style(obj, &styles->circle, LV_PART_INDICATOR); in theme_apply()
853 lv_obj_add_style(obj, &styles->knob, LV_PART_KNOB); in theme_apply()
855 lv_obj_add_style(obj, &styles->grow, LV_PART_KNOB | LV_STATE_PRESSED); in theme_apply()
857 lv_obj_add_style(obj, &styles->transition_delayed, LV_PART_KNOB); in theme_apply()
858 lv_obj_add_style(obj, &styles->transition_normal, LV_PART_KNOB | LV_STATE_PRESSED); in theme_apply()
863 else if(lv_obj_check_type(obj, &lv_table_class)) { in theme_apply()
864 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
865 lv_obj_add_style(obj, &styles->pad_zero, 0); in theme_apply()
866 lv_obj_add_style(obj, &styles->no_radius, 0); in theme_apply()
867 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
868 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
869 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
870 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
871 lv_obj_add_style(obj, &styles->bg_color_white, LV_PART_ITEMS); in theme_apply()
872 lv_obj_add_style(obj, &styles->table_cell, LV_PART_ITEMS); in theme_apply()
873 lv_obj_add_style(obj, &styles->pad_normal, LV_PART_ITEMS); in theme_apply()
874 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
875 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
876 lv_obj_add_style(obj, &styles->bg_color_secondary, LV_PART_ITEMS | LV_STATE_EDITED); in theme_apply()
881 else if(lv_obj_check_type(obj, &lv_checkbox_class)) { in theme_apply()
882 lv_obj_add_style(obj, &styles->pad_gap, 0); in theme_apply()
883 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
884 lv_obj_add_style(obj, &styles->disabled, LV_PART_INDICATOR | LV_STATE_DISABLED); in theme_apply()
885 lv_obj_add_style(obj, &styles->cb_marker, LV_PART_INDICATOR); in theme_apply()
886 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply()
887 lv_obj_add_style(obj, &styles->cb_marker_checked, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply()
888 lv_obj_add_style(obj, &styles->pressed, LV_PART_INDICATOR | LV_STATE_PRESSED); in theme_apply()
890 lv_obj_add_style(obj, &styles->grow, LV_PART_INDICATOR | LV_STATE_PRESSED); in theme_apply()
892 lv_obj_add_style(obj, &styles->transition_normal, LV_PART_INDICATOR | LV_STATE_PRESSED); in theme_apply()
893 lv_obj_add_style(obj, &styles->transition_delayed, LV_PART_INDICATOR); in theme_apply()
898 else if(lv_obj_check_type(obj, &lv_switch_class)) { in theme_apply()
899 lv_obj_add_style(obj, &styles->bg_color_grey, 0); in theme_apply()
900 lv_obj_add_style(obj, &styles->circle, 0); in theme_apply()
901 lv_obj_add_style(obj, &styles->anim_fast, 0); in theme_apply()
902 lv_obj_add_style(obj, &styles->disabled, LV_STATE_DISABLED); in theme_apply()
903 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
904 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply()
905 lv_obj_add_style(obj, &styles->circle, LV_PART_INDICATOR); in theme_apply()
906 lv_obj_add_style(obj, &styles->disabled, LV_PART_INDICATOR | LV_STATE_DISABLED); in theme_apply()
907 lv_obj_add_style(obj, &styles->knob, LV_PART_KNOB); in theme_apply()
908 lv_obj_add_style(obj, &styles->bg_color_white, LV_PART_KNOB); in theme_apply()
909 lv_obj_add_style(obj, &styles->switch_knob, LV_PART_KNOB); in theme_apply()
910 lv_obj_add_style(obj, &styles->disabled, LV_PART_KNOB | LV_STATE_DISABLED); in theme_apply()
912 lv_obj_add_style(obj, &styles->transition_normal, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply()
913 lv_obj_add_style(obj, &styles->transition_normal, LV_PART_INDICATOR); in theme_apply()
918 else if(lv_obj_check_type(obj, &lv_chart_class)) { in theme_apply()
919 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
920 lv_obj_add_style(obj, &styles->pad_small, 0); in theme_apply()
921 lv_obj_add_style(obj, &styles->chart_bg, 0); in theme_apply()
922 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
923 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
924 lv_obj_add_style(obj, &styles->chart_series, LV_PART_ITEMS); in theme_apply()
925 lv_obj_add_style(obj, &styles->chart_indic, LV_PART_INDICATOR); in theme_apply()
926 lv_obj_add_style(obj, &styles->chart_ticks, LV_PART_TICKS); in theme_apply()
927 lv_obj_add_style(obj, &styles->chart_series, LV_PART_CURSOR); in theme_apply()
932 else if(lv_obj_check_type(obj, &lv_roller_class)) { in theme_apply()
933 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
934 lv_obj_add_style(obj, &styles->anim, 0); in theme_apply()
935 lv_obj_add_style(obj, &styles->line_space_large, 0); in theme_apply()
936 lv_obj_add_style(obj, &styles->text_align_center, 0); in theme_apply()
937 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
938 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
939 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_SELECTED); in theme_apply()
944 else if(lv_obj_check_type(obj, &lv_dropdown_class)) { in theme_apply()
945 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
946 lv_obj_add_style(obj, &styles->pad_small, 0); in theme_apply()
947 lv_obj_add_style(obj, &styles->transition_delayed, 0); in theme_apply()
948 lv_obj_add_style(obj, &styles->transition_normal, LV_STATE_PRESSED); in theme_apply()
949 lv_obj_add_style(obj, &styles->pressed, LV_STATE_PRESSED); in theme_apply()
950 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
951 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
952 lv_obj_add_style(obj, &styles->transition_normal, LV_PART_INDICATOR); in theme_apply()
954 else if(lv_obj_check_type(obj, &lv_dropdownlist_class)) { in theme_apply()
955 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
956 lv_obj_add_style(obj, &styles->clip_corner, 0); in theme_apply()
957 lv_obj_add_style(obj, &styles->line_space_large, 0); in theme_apply()
958 lv_obj_add_style(obj, &styles->dropdown_list, 0); in theme_apply()
959 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
960 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
961 lv_obj_add_style(obj, &styles->bg_color_white, LV_PART_SELECTED); in theme_apply()
962 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_SELECTED | LV_STATE_CHECKED); in theme_apply()
963 lv_obj_add_style(obj, &styles->pressed, LV_PART_SELECTED | LV_STATE_PRESSED); in theme_apply()
968 else if(lv_obj_check_type(obj, &lv_arc_class)) { in theme_apply()
969 lv_obj_add_style(obj, &styles->arc_indic, 0); in theme_apply()
970 lv_obj_add_style(obj, &styles->arc_indic, LV_PART_INDICATOR); in theme_apply()
971 lv_obj_add_style(obj, &styles->arc_indic_primary, LV_PART_INDICATOR); in theme_apply()
972 lv_obj_add_style(obj, &styles->knob, LV_PART_KNOB); in theme_apply()
977 else if(lv_obj_check_type(obj, &lv_spinner_class)) { in theme_apply()
978 lv_obj_add_style(obj, &styles->arc_indic, 0); in theme_apply()
979 lv_obj_add_style(obj, &styles->arc_indic, LV_PART_INDICATOR); in theme_apply()
980 lv_obj_add_style(obj, &styles->arc_indic_primary, LV_PART_INDICATOR); in theme_apply()
985 else if(lv_obj_check_type(obj, &lv_meter_class)) { in theme_apply()
986 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
987 lv_obj_add_style(obj, &styles->circle, 0); in theme_apply()
988 lv_obj_add_style(obj, &styles->meter_indic, LV_PART_INDICATOR); in theme_apply()
993 else if(lv_obj_check_type(obj, &lv_textarea_class)) { in theme_apply()
994 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
995 lv_obj_add_style(obj, &styles->pad_small, 0); in theme_apply()
996 lv_obj_add_style(obj, &styles->disabled, LV_STATE_DISABLED); in theme_apply()
997 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
998 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
999 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
1000 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
1001 lv_obj_add_style(obj, &styles->ta_cursor, LV_PART_CURSOR | LV_STATE_FOCUSED); in theme_apply()
1002 lv_obj_add_style(obj, &styles->ta_placeholder, LV_PART_TEXTAREA_PLACEHOLDER); in theme_apply()
1007 else if(lv_obj_check_type(obj, &lv_calendar_class)) { in theme_apply()
1008 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
1009 lv_obj_add_style(obj, &styles->pad_zero, 0); in theme_apply()
1014 else if(lv_obj_check_type(obj, &lv_calendar_header_arrow_class)) { in theme_apply()
1015 lv_obj_add_style(obj, &styles->calendar_header, 0); in theme_apply()
1020 else if(lv_obj_check_type(obj, &lv_calendar_header_dropdown_class)) { in theme_apply()
1021 lv_obj_add_style(obj, &styles->calendar_header, 0); in theme_apply()
1026 else if(lv_obj_check_type(obj, &lv_keyboard_class)) { in theme_apply()
1027 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
1028 lv_obj_add_style(obj, disp_size == DISP_LARGE ? &styles->pad_small : &styles->pad_tiny, 0); in theme_apply()
1029 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
1030 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
1031 lv_obj_add_style(obj, &styles->btn, LV_PART_ITEMS); in theme_apply()
1032 lv_obj_add_style(obj, &styles->disabled, LV_PART_ITEMS | LV_STATE_DISABLED); in theme_apply()
1033 lv_obj_add_style(obj, &styles->bg_color_white, LV_PART_ITEMS); in theme_apply()
1034 lv_obj_add_style(obj, &styles->keyboard_btn_bg, LV_PART_ITEMS); in theme_apply()
1035 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
1036 lv_obj_add_style(obj, &styles->bg_color_grey, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
1037 lv_obj_add_style(obj, &styles->bg_color_primary_muted, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
1038 lv_obj_add_style(obj, &styles->bg_color_secondary_muted, LV_PART_ITEMS | LV_STATE_EDITED); in theme_apply()
1042 else if(lv_obj_check_type(obj, &lv_list_class)) { in theme_apply()
1043 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
1044 lv_obj_add_style(obj, &styles->list_bg, 0); in theme_apply()
1045 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
1046 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
1049 else if(lv_obj_check_type(obj, &lv_list_text_class)) { in theme_apply()
1050 lv_obj_add_style(obj, &styles->bg_color_grey, 0); in theme_apply()
1051 lv_obj_add_style(obj, &styles->list_item_grow, 0); in theme_apply()
1053 else if(lv_obj_check_type(obj, &lv_list_btn_class)) { in theme_apply()
1054 lv_obj_add_style(obj, &styles->bg_color_white, 0); in theme_apply()
1055 lv_obj_add_style(obj, &styles->list_btn, 0); in theme_apply()
1056 lv_obj_add_style(obj, &styles->bg_color_primary, LV_STATE_FOCUS_KEY); in theme_apply()
1057 lv_obj_add_style(obj, &styles->list_item_grow, LV_STATE_FOCUS_KEY); in theme_apply()
1058 lv_obj_add_style(obj, &styles->list_item_grow, LV_STATE_PRESSED); in theme_apply()
1059 lv_obj_add_style(obj, &styles->pressed, LV_STATE_PRESSED); in theme_apply()
1064 else if(lv_obj_check_type(obj, &lv_menu_class)) { in theme_apply()
1065 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
1066 lv_obj_add_style(obj, &styles->menu_bg, 0); in theme_apply()
1068 else if(lv_obj_check_type(obj, &lv_menu_sidebar_cont_class)) { in theme_apply()
1069 lv_obj_add_style(obj, &styles->menu_sidebar_cont, 0); in theme_apply()
1070 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
1071 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
1073 else if(lv_obj_check_type(obj, &lv_menu_main_cont_class)) { in theme_apply()
1074 lv_obj_add_style(obj, &styles->menu_main_cont, 0); in theme_apply()
1075 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
1076 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
1078 else if(lv_obj_check_type(obj, &lv_menu_cont_class)) { in theme_apply()
1079 lv_obj_add_style(obj, &styles->menu_cont, 0); in theme_apply()
1080 lv_obj_add_style(obj, &styles->menu_pressed, LV_STATE_PRESSED); in theme_apply()
1081 lv_obj_add_style(obj, &styles->bg_color_primary_muted, LV_STATE_PRESSED | LV_STATE_CHECKED); in theme_apply()
1082 lv_obj_add_style(obj, &styles->bg_color_primary_muted, LV_STATE_CHECKED); in theme_apply()
1083 lv_obj_add_style(obj, &styles->bg_color_primary, LV_STATE_FOCUS_KEY); in theme_apply()
1085 else if(lv_obj_check_type(obj, &lv_menu_sidebar_header_cont_class) || in theme_apply()
1086 lv_obj_check_type(obj, &lv_menu_main_header_cont_class)) { in theme_apply()
1087 lv_obj_add_style(obj, &styles->menu_header_cont, 0); in theme_apply()
1089 else if(lv_obj_check_type(obj, &lv_menu_page_class)) { in theme_apply()
1090 lv_obj_add_style(obj, &styles->menu_page, 0); in theme_apply()
1091 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
1092 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
1094 else if(lv_obj_check_type(obj, &lv_menu_section_class)) { in theme_apply()
1095 lv_obj_add_style(obj, &styles->menu_section, 0); in theme_apply()
1097 else if(lv_obj_check_type(obj, &lv_menu_separator_class)) { in theme_apply()
1098 lv_obj_add_style(obj, &styles->menu_separator, 0); in theme_apply()
1102 else if(lv_obj_check_type(obj, &lv_msgbox_class)) { in theme_apply()
1103 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
1104 lv_obj_add_style(obj, &styles->msgbox_bg, 0); in theme_apply()
1107 else if(lv_obj_check_type(obj, &lv_msgbox_backdrop_class)) { in theme_apply()
1108 lv_obj_add_style(obj, &styles->msgbox_backdrop_bg, 0); in theme_apply()
1112 else if(lv_obj_check_type(obj, &lv_spinbox_class)) { in theme_apply()
1113 lv_obj_add_style(obj, &styles->card, 0); in theme_apply()
1114 lv_obj_add_style(obj, &styles->pad_small, 0); in theme_apply()
1115 lv_obj_add_style(obj, &styles->outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
1116 lv_obj_add_style(obj, &styles->outline_secondary, LV_STATE_EDITED); in theme_apply()
1117 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_CURSOR); in theme_apply()
1121 else if(lv_obj_check_type(obj, &lv_tileview_class)) { in theme_apply()
1122 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
1123 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
1124 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
1126 else if(lv_obj_check_type(obj, &lv_tileview_tile_class)) { in theme_apply()
1127 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
1128 lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
1133 else if(lv_obj_check_type(obj, &lv_tabview_class)) { in theme_apply()
1134 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
1135 lv_obj_add_style(obj, &styles->pad_zero, 0); in theme_apply()
1140 else if(lv_obj_check_type(obj, &lv_win_class)) { in theme_apply()
1141 lv_obj_add_style(obj, &styles->clip_corner, 0); in theme_apply()
1146 else if(lv_obj_check_type(obj, &lv_colorwheel_class)) { in theme_apply()
1147 lv_obj_add_style(obj, &styles->colorwheel_main, 0); in theme_apply()
1148 lv_obj_add_style(obj, &styles->pad_normal, 0); in theme_apply()
1149 lv_obj_add_style(obj, &styles->bg_color_white, LV_PART_KNOB); in theme_apply()
1150 lv_obj_add_style(obj, &styles->pad_normal, LV_PART_KNOB); in theme_apply()
1155 else if(lv_obj_check_type(obj, &lv_led_class)) { in theme_apply()
1156 lv_obj_add_style(obj, &styles->led, 0); in theme_apply()