From 1ef59026e4a20919cd6822d0b789eed09f25e42b Mon Sep 17 00:00:00 2001 From: Nathan Craddock Date: Thu, 28 Mar 2019 17:54:35 +0100 Subject: UI: tweak display of report messages in the status bar. Remove fading away the color, share theme colors with info editor. Differential Revision: https://developer.blender.org/D4197 --- source/blender/editors/interface/resources.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/blender/editors/interface') diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index e39f244fd40..72739b99e14 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -1153,6 +1153,16 @@ void UI_GetThemeColor4ubv(int colorid, uchar col[4]) col[3] = cp[3]; } +void UI_GetThemeColorType3fv(int colorid, int spacetype, float col[3]) +{ + const uchar *cp; + + cp = UI_ThemeGetColorPtr(theme_active, spacetype, colorid); + col[0] = ((float)cp[0]) / 255.0f; + col[1] = ((float)cp[1]) / 255.0f; + col[2] = ((float)cp[2]) / 255.0f; +} + void UI_GetThemeColorType3ubv(int colorid, int spacetype, uchar col[3]) { const uchar *cp; -- cgit v1.2.3