Page MenuHome

Very hard to read Edge Leights values
Closed, InvalidPublic

Description

System Information
Operating system:
Graphics card:

Blender Version
Broken: all 2.8X 2.9X
Worked: (newest version of Blender that worked as expected)

Based on the default startup or an attached .blend file (as simple as possible).
Very hard to read Edge Leights values, and i can't to find where to tune it
I think this is bug, and i create this task

Related Objects

Event Timeline

This is controlled by the theme: User Preferences -> Themes -> 3D Viewport -> Edge Length Text

Perhaps the shipping themes should be changed to have a better defaults.

Philipp Oeser (lichtwerk) claimed this task.

Against the default (dark) background, dark colors are indeed not very well readable.
But since the background could also be anything (bright, dark, ...), maybe we should consider drawing those with brighter colors combined with shadow (same as scene stats)?

1
2
3diff --git a/source/blender/draw/intern/draw_manager_text.c b/source/blender/draw/intern/draw_manager_text.c
4index f4601fe4f48..145066ec5d3 100644
5--- a/source/blender/draw/intern/draw_manager_text.c
6+++ b/source/blender/draw/intern/draw_manager_text.c
7@@ -174,6 +174,10 @@ void DRW_text_cache_draw(DRWTextStore *dt, ARegion *region, struct View3D *v3d)
8 col_pack_prev = vos->col.pack;
9 }
10
11+ BLF_enable(font_id, BLF_SHADOW);
12+ BLF_shadow(font_id, 5, (const float[4]){0.0f, 0.0f, 0.0f, 1.0f});
13+ BLF_shadow_offset(font_id, 1, -1);
14+
15 BLF_position(
16 font_id, (float)(vos->sco[0] + vos->xoffs), (float)(vos->sco[1] + vos->yoffs), 2.0f);
17

That on the other hand affects other places as well (motion paths, bone names, gpencil color printing, ...) and would probably require lots of updates to themes.

This looks more like a request for modified/improved behavior and not a bug in current behavior.
Will subscribe @Harley Acheson (harley), @Julian Eisel (Severin) and @William Reynish (billreynish) here so that they are aware, but will close since this bug tracker is only for bugs and errors. (unless UI team has objections? anyone feel free to reopen)