Fix T83868: Disabled or inactive list items are not grayed out
The cause for this was quite simple-- a misplaced bitwise operation before passing a value to the function that grayed out buttons based on their state, caused by refactoring in rB933bf62a611f before committing. What makes the situation a little more confusing is that the theme colors are overridden for list buttons in UI lists, necessitating a second call to `ui_widget_color_disabled()`. Ideally that wouldn't be necessary.
This commit is contained in:
parent
5530d6f86f
commit
61f1faac3f
Notes:
blender-bot
2023-02-14 03:00:45 +01:00
Referenced by issue #83868, UI: disabled items are still drawn in white instead of grayed-out
|
@ -2558,7 +2558,7 @@ static void widget_state(uiWidgetType *wt, int state, int drawflag, eUIEmbossTyp
|
|||
wt->wcol_theme = &btheme->tui.wcol_list_item;
|
||||
|
||||
if (state & (UI_BUT_DISABLED | UI_BUT_INACTIVE | UI_SEARCH_FILTER_NO_MATCH)) {
|
||||
ui_widget_color_disabled(wt, state & UI_SEARCH_FILTER_NO_MATCH);
|
||||
ui_widget_color_disabled(wt, state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue