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.
This commit is contained in:
Julian Eisel 2018-11-25 18:48:52 +01:00
parent b7e02c677d
commit 6c704b4632
1 changed files with 0 additions and 6 deletions

View File

@ -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;