[Bf-blender-cvs] [8ca45e929af] master: Wonky Menu Down Arrow

Pablo Vazquez noreply at git.blender.org
Thu Feb 28 17:05:14 CET 2019


Commit: 8ca45e929af641aae8b482f7aefd82519052c6bf
Author: Pablo Vazquez
Date:   Thu Feb 28 17:01:35 2019 +0100
Branches: master
https://developer.blender.org/rB8ca45e929af641aae8b482f7aefd82519052c6bf

Wonky Menu Down Arrow

Almost every pulldown menu and popover has a little dropdown arrow shape.

Unfortunately it is a bit wonky.  The top of the right side of it is wider than the top of the left side. And both sides are narrower at the bottom than the top. It might be hard to see, but this image should help:

{F6728281}

The patch fixes the symmetry of the shape while keeping the weight as similar as possible. In the following image you can see the outline of the current version in red and this new version in green.

{F6728298}

With patch applied the arrow looks perfect:

{F6728302}

Reviewers: brecht, billreynish

Reviewed By: billreynish

Subscribers: pablovazquez

Tags: #bf_blender, #bf_blender_2.8, #user_interface

Differential Revision: https://developer.blender.org/D4424

===================================================================

M	source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl

===================================================================

diff --git a/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl b/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl
index 7db0029e64d..ff51e0266d7 100644
--- a/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl
@@ -69,8 +69,8 @@ uniform vec2 triavec[43] = vec2[43](
 	vec2(0.000000, -1.000000),
 
 	/* ROUNDBOX_TRIA_MENU - menu arrows */
-	vec2(-0.51, 0.08), vec2(-0.41, 0.20), vec2(-0.05, -0.39),
-	vec2(-0.05, -0.18), vec2(0.41, 0.08), vec2(0.3, 0.20),
+	vec2(-0.51, 0.07), vec2(-0.4, 0.18), vec2(-0.05, -0.39),
+	vec2(-0.05, -0.17), vec2(0.41, 0.07), vec2(0.3, 0.18),
 
 
 	/* ROUNDBOX_TRIA_CHECK - check mark */



More information about the Bf-blender-cvs mailing list