Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Vazquez <contact@pablovazquez.art>2019-02-28 19:01:35 +0300
committerPablo Vazquez <contact@pablovazquez.art>2019-02-28 19:05:13 +0300
commit8ca45e929af641aae8b482f7aefd82519052c6bf (patch)
tree7c3ef7694b9aa6adef4aec0a169ca0abfa986770 /source/blender
parentac8c4aad302f9671b3126f25c619b6be97a2a547 (diff)
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
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl4
1 files changed, 2 insertions, 2 deletions
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 */