Themes: disabled items on menus were using a color mix of text and text_selected, this didn't work nice with dark themes and text shadows and overall didn't make much sense.
Now, disabled items use a mix of text and menu item background (inner) color. Same results, but allows dark themes with bright selected text to use shadows. Example case: http://pasteall.org/pic/show.php?id=45697
This commit is contained in:
@@ -1804,7 +1804,7 @@ static void widget_state_menu_item(uiWidgetType *wt, int state)
|
|||||||
}
|
}
|
||||||
/* regular disabled */
|
/* regular disabled */
|
||||||
else if (state & (UI_BUT_DISABLED | UI_BUT_INACTIVE)) {
|
else if (state & (UI_BUT_DISABLED | UI_BUT_INACTIVE)) {
|
||||||
widget_state_blend(wt->wcol.text, wt->wcol.text_sel, 0.5f);
|
widget_state_blend(wt->wcol.text, wt->wcol.inner, 0.5f);
|
||||||
}
|
}
|
||||||
/* regular active */
|
/* regular active */
|
||||||
else if (state & UI_ACTIVE) {
|
else if (state & UI_ACTIVE) {
|
||||||
|
Reference in New Issue
Block a user