diff options
Diffstat (limited to 'source/blender/blenfont/intern')
-rw-r--r-- | source/blender/blenfont/intern/blf.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index 58c6f095ae7..01feb652f31 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -50,9 +50,10 @@ #include "BLI_math.h" #include "BLI_threads.h" -#include "BIF_gl.h" #include "BLF_api.h" +#include "UI_resources.h" + #include "IMB_colormanagement.h" #ifndef BLF_STANDALONE @@ -466,6 +467,15 @@ void BLF_blur(int fontid, int size) } #endif +void BLF_ThemeColor(int fontid, int colorid) +{ + FontBLF *font = blf_get(fontid); + + if (font) { + UI_GetThemeColor4ubv(colorid, font->color); + } +} + void BLF_color4ubv(int fontid, const unsigned char rgba[4]) { FontBLF *font = blf_get(fontid); |