diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2020-10-13 19:35:46 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2020-10-13 19:35:46 +0300 |
commit | 9fe581758851c98a8e43f0e8a02d70551352682d (patch) | |
tree | 7a25e8c87b35d3e1af18335d13ca524305af8ab3 /source/blender/editors/interface/interface.c | |
parent | b7afcdff7b068f668a3bfb032cf659693c8879f0 (diff) |
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
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } /** |