Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/resources.c
| Show First 20 Lines • Show All 786 Lines • ▼ Show 20 Lines | void ui_theme_init_default(void) | ||||
| btheme->tv3d.panelcolors.show_header = false; | btheme->tv3d.panelcolors.show_header = false; | ||||
| rgba_char_args_set_fl(btheme->tv3d.panelcolors.back, 0.45, 0.45, 0.45, 0.5); | rgba_char_args_set_fl(btheme->tv3d.panelcolors.back, 0.45, 0.45, 0.45, 0.5); | ||||
| rgba_char_args_set_fl(btheme->tv3d.panelcolors.header, 0, 0, 0, 0.01); | rgba_char_args_set_fl(btheme->tv3d.panelcolors.header, 0, 0, 0, 0.01); | ||||
| rgba_char_args_set_fl(btheme->tv3d.back, 0.225, 0.225, 0.225, 1.0); | rgba_char_args_set_fl(btheme->tv3d.back, 0.225, 0.225, 0.225, 1.0); | ||||
| rgba_char_args_set(btheme->tv3d.text, 0, 0, 0, 255); | rgba_char_args_set(btheme->tv3d.text, 0, 0, 0, 255); | ||||
| rgba_char_args_set(btheme->tv3d.text_hi, 255, 255, 255, 255); | rgba_char_args_set(btheme->tv3d.text_hi, 255, 255, 255, 255); | ||||
| rgba_char_args_set_fl(btheme->tv3d.header, 0.45, 0.45, 0.45, 1.0); | rgba_char_args_set_fl(btheme->tv3d.header, 0.45, 0.45, 0.45, 1.0); | ||||
| rgba_char_args_set_fl(btheme->tv3d.button, 0.45, 0.45, 0.45, 0.5); | |||||
| // rgba_char_args_set(btheme->tv3d.panel, 165, 165, 165, 127); | // rgba_char_args_set(btheme->tv3d.panel, 165, 165, 165, 127); | ||||
| rgba_char_args_set(btheme->tv3d.shade1, 160, 160, 160, 100); | rgba_char_args_set(btheme->tv3d.shade1, 160, 160, 160, 100); | ||||
| rgba_char_args_set(btheme->tv3d.shade2, 0x7f, 0x70, 0x70, 100); | rgba_char_args_set(btheme->tv3d.shade2, 0x7f, 0x70, 0x70, 100); | ||||
| rgba_char_args_set_fl(btheme->tv3d.grid, 0.251, 0.251, 0.251, 1.0); | rgba_char_args_set_fl(btheme->tv3d.grid, 0.251, 0.251, 0.251, 1.0); | ||||
| rgba_char_args_set(btheme->tv3d.wire, 0x0, 0x0, 0x0, 255); | rgba_char_args_set(btheme->tv3d.wire, 0x0, 0x0, 0x0, 255); | ||||
| rgba_char_args_set(btheme->tv3d.wire_edit, 0x0, 0x0, 0x0, 255); | rgba_char_args_set(btheme->tv3d.wire_edit, 0x0, 0x0, 0x0, 255); | ||||
| ▲ Show 20 Lines • Show All 1,400 Lines • ▼ Show 20 Lines | if (U.ndof_orbit_sensitivity == 0.0f) { | ||||
| if (!(U.flag & USER_TRACKBALL)) | if (!(U.flag & USER_TRACKBALL)) | ||||
| U.ndof_flag |= NDOF_TURNTABLE; | U.ndof_flag |= NDOF_TURNTABLE; | ||||
| } | } | ||||
| if (U.tweak_threshold == 0) | if (U.tweak_threshold == 0) | ||||
| U.tweak_threshold = 10; | U.tweak_threshold = 10; | ||||
| } | } | ||||
| if (bmain->versionfile < 265 || (bmain->versionfile == 265 && bmain->subversionfile < 1)) { | |||||
| bTheme *btheme; | |||||
| for (btheme = U.themes.first; btheme; btheme = btheme->next) { | |||||
| /* note: the toggle operator for transparent backdrops limits to these spacetypes */ | |||||
| if (btheme->tnode.button[3] == 255) { | |||||
| btheme->tv3d.button[3] = 128; | |||||
| btheme->tnode.button[3] = 128; | |||||
| btheme->tima.button[3] = 128; | |||||
| btheme->tseq.button[3] = 128; | |||||
| btheme->tclip.button[3] = 128; | |||||
| } | |||||
| } | |||||
| } | |||||
| /* panel header/backdrop supported locally per editor now */ | /* panel header/backdrop supported locally per editor now */ | ||||
| if (bmain->versionfile < 265 || (bmain->versionfile == 265 && bmain->subversionfile < 2)) { | if (bmain->versionfile < 265 || (bmain->versionfile == 265 && bmain->subversionfile < 2)) { | ||||
| bTheme *btheme; | bTheme *btheme; | ||||
| for (btheme = U.themes.first; btheme; btheme = btheme->next) { | for (btheme = U.themes.first; btheme; btheme = btheme->next) { | ||||
| ThemeSpace *ts; | ThemeSpace *ts; | ||||
| ▲ Show 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | if (U.versionfile < 269 || (U.versionfile == 269 && U.subversionfile < 9)) { | ||||
| } | } | ||||
| /* grease pencil - new layer color */ | /* grease pencil - new layer color */ | ||||
| if (U.gpencil_new_layer_col[3] < 0.1f) { | if (U.gpencil_new_layer_col[3] < 0.1f) { | ||||
| /* defaults to black, but must at least be visible! */ | /* defaults to black, but must at least be visible! */ | ||||
| U.gpencil_new_layer_col[3] = 0.9f; | U.gpencil_new_layer_col[3] = 0.9f; | ||||
| } | } | ||||
| } | } | ||||
| if (U.versionfile < 269 || (U.versionfile == 269 && U.subversionfile < 10)) { | |||||
| bTheme *btheme; | |||||
| for (btheme = U.themes.first; btheme; btheme = btheme->next) { | |||||
| ThemeSpace *ts; | |||||
| for (ts = UI_THEMESPACE_START(btheme); ts != UI_THEMESPACE_END(btheme); ts++) { | |||||
| rgba_char_args_set(ts->button, 114, 114, 114, 255); | |||||
| } | |||||
| } | |||||
| } | |||||
| if (U.pixelsize == 0.0f) | if (U.pixelsize == 0.0f) | ||||
| U.pixelsize = 1.0f; | U.pixelsize = 1.0f; | ||||
| if (U.image_draw_method == 0) | if (U.image_draw_method == 0) | ||||
| U.image_draw_method = IMAGE_DRAW_METHOD_2DTEXTURE; | U.image_draw_method = IMAGE_DRAW_METHOD_2DTEXTURE; | ||||
| /* funny name, but it is GE stuff, moves userdef stuff to engine */ | /* funny name, but it is GE stuff, moves userdef stuff to engine */ | ||||
| // XXX space_set_commmandline_options(); | // XXX space_set_commmandline_options(); | ||||
| Show All 22 Lines | |||||