UI: Graph Editor: Use outline for Y values shadow
Replace the blur shadow on vertical values in the Graph Editor with an outline to improve readability. Pull Request: https://projects.blender.org/blender/blender/pulls/128374
This commit is contained in:
committed by
Pablo Vazquez
parent
675606cbce
commit
6b3ce7d664
@@ -379,8 +379,8 @@ static void draw_vertical_scale_indicators(const ARegion *region,
|
||||
BLF_enable(font_id, BLF_SHADOW);
|
||||
float shadow_color[4];
|
||||
UI_GetThemeColor4fv(TH_BACK, shadow_color);
|
||||
BLF_shadow(font_id, FontShadowType::Blur5x5, shadow_color);
|
||||
BLF_shadow_offset(font_id, 1, -1);
|
||||
BLF_shadow_offset(font_id, 0, 0);
|
||||
BLF_shadow(font_id, FontShadowType::Outline, shadow_color);
|
||||
|
||||
const float x_offset = 8.0f;
|
||||
const float xpos = (rect->xmin + x_offset) * UI_SCALE_FAC;
|
||||
|
||||
Reference in New Issue
Block a user