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:
authorCampbell Barton <ideasman42@gmail.com>2019-02-15 03:58:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-15 03:58:36 +0300
commit796abc90a8ba27aa0da5808790a9607d08df61d0 (patch)
tree745d17611ffba766d8977beda77a67dd509c8ba6 /source/blender/editors/interface/resources.c
parent986d480566ff3ec341c4fddd372a254aa3b6516a (diff)
Fix T58090: Selected curve vertex should stand out
D4002 by @slumber w/ edits. Use text colors, blending to background if they don't contrast.
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r--source/blender/editors/interface/resources.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c
index ff0084d1750..1751e43b973 100644
--- a/source/blender/editors/interface/resources.c
+++ b/source/blender/editors/interface/resources.c
@@ -933,6 +933,17 @@ void UI_GetThemeColor4fv(int colorid, float col[4])
col[3] = ((float)cp[3]) / 255.0f;
}
+void UI_GetThemeColorType4fv(int colorid, int spacetype, float col[4])
+{
+ const unsigned char *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;
+ col[3] = ((float)cp[3]) / 255.0f;
+}
+
/* get the color, range 0.0-1.0, complete with shading offset */
void UI_GetThemeColorShade3fv(int colorid, int offset, float col[3])
{