[Bf-blender-cvs] [6c704b46327] blender2.8: UI: Disable font shadow in tooltip
Julian Eisel
noreply at git.blender.org
Sun Nov 25 19:52:02 CET 2018
Commit: 6c704b46327501b6aeeca96c1edfa97156e829e3
Author: Julian Eisel
Date: Sun Nov 25 18:48:52 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB6c704b46327501b6aeeca96c1edfa97156e829e3
UI: Disable font shadow in tooltip
When I added this a few years ago, it was meant to create a fake bold effect.
With the new text shadow drawing code, that doesn't work well though.
===================================================================
M source/blender/editors/interface/interface_region_tooltip.c
===================================================================
diff --git a/source/blender/editors/interface/interface_region_tooltip.c b/source/blender/editors/interface/interface_region_tooltip.c
index b8cbf7950b7..1a167b3fd72 100644
--- a/source/blender/editors/interface/interface_region_tooltip.c
+++ b/source/blender/editors/interface/interface_region_tooltip.c
@@ -228,18 +228,12 @@ static void ui_tooltip_region_draw_cb(const bContext *UNUSED(C), ARegion *ar)
uiFontStyle fstyle_header = data->fstyle;
/* override text-style */
- fstyle_header.shadow = 1;
- fstyle_header.shadowcolor = rgb_to_grayscale(tip_colors[UI_TIP_LC_MAIN]);
- fstyle_header.shadx = fstyle_header.shady = 0;
- fstyle_header.shadowalpha = 1.0f;
fstyle_header.word_wrap = true;
rgb_float_to_uchar(drawcol, tip_colors[UI_TIP_LC_MAIN]);
UI_fontstyle_set(&fstyle_header);
UI_fontstyle_draw(&fstyle_header, &bbox, field->text, drawcol);
- fstyle_header.shadow = 0;
-
/* offset to the end of the last line */
if (field->text_suffix) {
float xofs = field->geom.x_pos;
More information about the Bf-blender-cvs
mailing list