Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/resources.c
| Context not available. | |||||
| cp = ts->title; | cp = ts->title; | ||||
| else if (theme_regionid == RGN_TYPE_CHANNELS) | else if (theme_regionid == RGN_TYPE_CHANNELS) | ||||
| cp = ts->list_title; | cp = ts->list_title; | ||||
| #if 0 | |||||
| else if (theme_regionid == RGN_TYPE_HEADER) | else if (theme_regionid == RGN_TYPE_HEADER) | ||||
| cp = ts->header_title; | cp = ts->header_title; | ||||
| #endif | |||||
| else | else | ||||
| cp = ts->button_title; | cp = ts->button_title; | ||||
| break; | break; | ||||
| Context not available. | |||||
| static void ui_theme_init_new_do(ThemeSpace *ts) | static void ui_theme_init_new_do(ThemeSpace *ts) | ||||
| { | { | ||||
| rgba_char_args_set(ts->header_text, 0, 0, 0, 255); | rgba_char_args_set(ts->header_text, 0, 0, 0, 255); | ||||
| rgba_char_args_set(ts->header_title, 0, 0, 0, 255); | /* rgba_char_args_set(ts->header_title, 0, 0, 0, 255); unused */ | ||||
| rgba_char_args_set(ts->header_text_hi, 255, 255, 255, 255); | rgba_char_args_set(ts->header_text_hi, 255, 255, 255, 255); | ||||
| #if 0 | #if 0 | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| if (!USER_VERSION_ATLEAST(280, 0)) { | |||||
| bTheme *btheme; | |||||
| /* Some custom themes may have the alpha channel of RGB properties set to 0. | |||||
| * Blender 2.79 ignored this channel on import. | |||||
| * But in 2.80 it is used even without being exposed to the user. */ | |||||
| for (btheme = U.themes.first; btheme; btheme = btheme->next) { | |||||
| int i; | |||||
| uiWidgetColors *wcol[] = { | |||||
| &btheme->tui.wcol_regular, | |||||
| &btheme->tui.wcol_tool, | |||||
| &btheme->tui.wcol_text, | |||||
| &btheme->tui.wcol_radio, | |||||
| &btheme->tui.wcol_option, | |||||
| &btheme->tui.wcol_toggle, | |||||
| &btheme->tui.wcol_num, | |||||
| &btheme->tui.wcol_numslider, | |||||
| &btheme->tui.wcol_tab, | |||||
| &btheme->tui.wcol_menu, | |||||
| &btheme->tui.wcol_pulldown, | |||||
| &btheme->tui.wcol_menu_back, | |||||
| &btheme->tui.wcol_menu_item, | |||||
| &btheme->tui.wcol_tooltip, | |||||
| &btheme->tui.wcol_box, | |||||
| &btheme->tui.wcol_scroll, | |||||
| &btheme->tui.wcol_progress, | |||||
| &btheme->tui.wcol_list_item, | |||||
| &btheme->tui.wcol_pie_menu, | |||||
| }; | |||||
| for (i = 0; i < ARRAY_SIZE(wcol); i++) { | |||||
| wcol[i]->outline[3] = 255; | |||||
| wcol[i]->text[3] = 255; | |||||
| wcol[i]->inner[3] = 255; | |||||
| } | |||||
| btheme->tui.wcol_state.inner_anim[3] = 255; | |||||
| btheme->tui.wcol_state.inner_anim_sel[3] = 255; | |||||
| btheme->tui.wcol_state.inner_key[3] = 255; | |||||
| btheme->tui.wcol_state.inner_key_sel[3] = 255; | |||||
| btheme->tui.wcol_state.inner_driven[3] = 255; | |||||
| btheme->tui.wcol_state.inner_driven_sel[3] = 255; | |||||
| btheme->tui.xaxis[3] = 255; | |||||
| btheme->tui.yaxis[3] = 255; | |||||
| btheme->tui.zaxis[3] = 255; | |||||
| ThemeSpace *ts[] = { | |||||
| &btheme->tbuts, | |||||
| &btheme->tv3d, | |||||
| &btheme->tfile, | |||||
| &btheme->tipo, | |||||
| &btheme->tinfo, | |||||
| &btheme->tact, | |||||
| &btheme->tnla, | |||||
| &btheme->tseq, | |||||
| &btheme->tima, | |||||
| &btheme->text, | |||||
| &btheme->toops, | |||||
| &btheme->ttime, | |||||
| &btheme->tnode, | |||||
| &btheme->tlogic, | |||||
| &btheme->tuserpref, | |||||
| &btheme->tconsole, | |||||
| &btheme->tclip, | |||||
| }; | |||||
| for (i = 0; i < ARRAY_SIZE(ts); i++) { | |||||
| ts[i]->back[3] = 255; | |||||
| ts[i]->title[3] = 255; | |||||
| ts[i]->text[3] = 255; | |||||
| ts[i]->text_hi[3] = 255; | |||||
| ts[i]->header[3] = 255; | |||||
| ts[i]->header_text[3] = 255; | |||||
| ts[i]->header_text_hi[3] = 255; | |||||
| ts[i]->button_title[3] = 255; | |||||
| ts[i]->button_text[3] = 255; | |||||
| ts[i]->button_text_hi[3] = 255; | |||||
| ts[i]->tab_active[3] = 255; | |||||
| ts[i]->tab_inactive[3] = 255; | |||||
| ts[i]->tab_outline[3] = 255; | |||||
| ts[i]->list[3] = 255; | |||||
| ts[i]->list_title[3] = 255; | |||||
| ts[i]->list_text[3] = 255; | |||||
| ts[i]->list_text_hi[3] = 255; | |||||
| ts[i]->gradients.gradient[3] = 255; | |||||
| ts[i]->gradients.high_gradient[3] = 255; | |||||
| ts[i]->grid[3] = 255; | |||||
| ts[i]->cframe[3] = 255; | |||||
| ts[i]->shade1[3] = 255; | |||||
| ts[i]->shade2[3] = 255; | |||||
| ts[i]->ds_channel[3] = 255; | |||||
| ts[i]->ds_subchannel[3] = 255; | |||||
| ts[i]->group[3] = 255; | |||||
| ts[i]->group_active[3] = 255; | |||||
| ts[i]->gp_vertex[3] = 255; | |||||
| ts[i]->gp_vertex_select[3] = 255; | |||||
| } | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Include next version bump. | * Include next version bump. | ||||
| * | * | ||||
| Context not available. | |||||