From 9fe581758851c98a8e43f0e8a02d70551352682d Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Tue, 13 Oct 2020 09:35:46 -0700 Subject: 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 --- source/blender/editors/interface/interface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 83e47ce9f07..94b93c11f6c 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -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); } /** -- cgit v1.2.3