Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_widgets.c
| Show First 20 Lines • Show All 2,520 Lines • ▼ Show 20 Lines | static const uchar *widget_color_blend_from_flags(const uiWidgetStateColors *wcol_state, | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| /* copy colors from theme, and set changes in it based on state */ | /* copy colors from theme, and set changes in it based on state */ | ||||
| static void widget_state(uiWidgetType *wt, int state, int drawflag, eUIEmbossType emboss) | static void widget_state(uiWidgetType *wt, int state, int drawflag, eUIEmbossType emboss) | ||||
| { | { | ||||
| uiWidgetStateColors *wcol_state = wt->wcol_state; | uiWidgetStateColors *wcol_state = wt->wcol_state; | ||||
| if ((state & UI_BUT_LIST_ITEM) && !(state & UI_STATE_TEXT_INPUT)) { | if (state & UI_BUT_LIST_ITEM) { | ||||
Severin: Remove superfluous parentheses. | |||||
Done Inline ActionsOops, relying too much in clang to fix things for me :D Thanks! pablovazquez: Oops, relying too much in clang to fix things for me :D Thanks! | |||||
| /* Override default widget's colors. */ | /* Override default widget's colors. */ | ||||
| bTheme *btheme = UI_GetTheme(); | bTheme *btheme = UI_GetTheme(); | ||||
| wt->wcol_theme = &btheme->tui.wcol_list_item; | wt->wcol_theme = &btheme->tui.wcol_list_item; | ||||
| if (state & (UI_BUT_DISABLED | UI_BUT_INACTIVE | UI_SEARCH_FILTER_NO_MATCH)) { | if (state & (UI_BUT_DISABLED | UI_BUT_INACTIVE | UI_SEARCH_FILTER_NO_MATCH)) { | ||||
| ui_widget_color_disabled(wt, state); | ui_widget_color_disabled(wt, state); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,941 Lines • Show Last 20 Lines | |||||
Remove superfluous parentheses.