Fix T38643: Frame labels are invisible with default theme.

The color for frame labels was a mix of the text color (black by
default) and the node theme color with a factor of 0.8, which
coincidentally is the same as the node body color.

Changed it to 0.4, which is the same as the regular node labels use.
This commit is contained in:
Lukas Tönne 2014-02-17 09:26:19 +01:00
parent 14b9c79483
commit 80f3956972
Notes: blender-bot 2023-02-14 11:11:03 +01:00
Referenced by issue #39317, Titles on frame nodes are difficult to see with a colored background
Referenced by issue #38643, Frame labels are invisible with default theme
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ static void node_draw_frame_label(bNodeTree *ntree, bNode *node, const float asp
BLF_size(fontid, MIN2(24, font_size), U.dpi); /* clamp otherwise it can suck up a LOT of memory */
/* title color */
UI_ThemeColorBlendShade(TH_TEXT, color_id, 0.8f, 10);
UI_ThemeColorBlendShade(TH_TEXT, color_id, 0.4f, 10);
width = BLF_width(fontid, label, sizeof(label));
ascender = BLF_ascender(fontid);