UI: Monochrome Alert Icons not changing color until theme refresh

Changing the color of monochrome alert icons would not change until the theme was reloaded.

Differential Revision: https://developer.blender.org/D9062

Reviewed by Harley Acheson
This commit is contained in:
Harley Acheson 2020-10-13 09:35:46 -07:00
parent b7afcdff7b
commit 9fe5817588
Notes: blender-bot 2023-02-14 12:01:57 +01:00
Referenced by issue #73415, Alert Dialog Icons
1 changed files with 2 additions and 3 deletions

View File

@ -4706,9 +4706,8 @@ uiBut *uiDefButImage(
uiBut *uiDefButAlert(uiBlock *block, int icon, int x, int y, short width, short height)
{
struct ImBuf *ibuf = UI_icon_alert_imbuf_get(icon);
uchar icon_color[4];
UI_GetThemeColor4ubv(TH_TEXT, icon_color);
return uiDefButImage(block, ibuf, x, y, width, height, icon_color);
bTheme *btheme = UI_GetTheme();
return uiDefButImage(block, ibuf, x, y, width, height, btheme->tui.wcol_menu_back.text);
}
/**