Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_info/info_ops.c
| Show First 20 Lines • Show All 562 Lines • ▼ Show 20 Lines | if ((float)reports->reporttimer->duration > timeout) { | ||||
| WM_event_add_notifier(C, NC_SPACE | ND_SPACE_INFO, NULL); | WM_event_add_notifier(C, NC_SPACE | ND_SPACE_INFO, NULL); | ||||
| return (OPERATOR_FINISHED | OPERATOR_PASS_THROUGH); | return (OPERATOR_FINISHED | OPERATOR_PASS_THROUGH); | ||||
| } | } | ||||
| /* set target color based on report type */ | /* set target color based on report type */ | ||||
| if (report->type & RPT_ERROR_ALL) { | if (report->type & RPT_ERROR_ALL) { | ||||
| UI_GetThemeColorType3fv(TH_INFO_ERROR, SPACE_INFO, target_col); | UI_GetThemeColorType3fv(TH_INFO_REPORT_ERROR, SPACE_INFO, target_col); | ||||
| } | } | ||||
| else if (report->type & RPT_WARNING_ALL) { | else if (report->type & RPT_WARNING_ALL) { | ||||
| UI_GetThemeColorType3fv(TH_INFO_WARNING, SPACE_INFO, target_col); | UI_GetThemeColorType3fv(TH_INFO_REPORT_WARNING, SPACE_INFO, target_col); | ||||
| } | } | ||||
| else if (report->type & RPT_INFO_ALL) { | else if (report->type & RPT_INFO_ALL) { | ||||
| UI_GetThemeColorType3fv(TH_INFO_INFO, SPACE_INFO, target_col); | UI_GetThemeColorType3fv(TH_INFO_REPORT_INFO, SPACE_INFO, target_col); | ||||
| } | } | ||||
| target_col[3] = 0.65f; | target_col[3] = 0.65f; | ||||
| if (rti->widthfac == 0.0f) { | if (rti->widthfac == 0.0f) { | ||||
| /* initialize color to a brighter shade of the target color */ | /* initialize color to a brighter shade of the target color */ | ||||
| rti->col[0] = target_col[0] + BRIGHTEN_AMOUNT; | rti->col[0] = target_col[0] + BRIGHTEN_AMOUNT; | ||||
| rti->col[1] = target_col[1] + BRIGHTEN_AMOUNT; | rti->col[1] = target_col[1] + BRIGHTEN_AMOUNT; | ||||
| rti->col[2] = target_col[2] + BRIGHTEN_AMOUNT; | rti->col[2] = target_col[2] + BRIGHTEN_AMOUNT; | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||