Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2020-10-13 19:35:46 +0300
committerHarley Acheson <harley.acheson@gmail.com>2020-10-13 19:35:46 +0300
commit9fe581758851c98a8e43f0e8a02d70551352682d (patch)
tree7a25e8c87b35d3e1af18335d13ca524305af8ab3 /source/blender/editors/interface
parentb7afcdff7b068f668a3bfb032cf659693c8879f0 (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')
-rw-r--r--source/blender/editors/interface/interface.c5
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);
}
/**