[Bf-blender-cvs] [85cf56ecbc6] master: UI: Reduce width of UI-List scrollbars

Julian Eisel noreply at git.blender.org
Mon Nov 25 11:49:53 CET 2019


Commit: 85cf56ecbc62dc8d77ba177d01b32065e63166cc
Author: Julian Eisel
Date:   Mon Nov 25 11:42:49 2019 +0100
Branches: master
https://developer.blender.org/rB85cf56ecbc62dc8d77ba177d01b32065e63166cc

UI: Reduce width of UI-List scrollbars

When scrollbars were redesigned, the size of UI-List scrollbars wasn't
updated. Those were still huge.
This makes their size consistent with other scrollbars and frankly,
non-rediculous.

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

M	source/blender/editors/interface/interface_templates.c

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

diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index f5c5ef5f5e2..a65e70d4109 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -93,6 +93,7 @@
 
 #include "UI_interface.h"
 #include "UI_interface_icons.h"
+#include "UI_view2d.h"
 #include "interface_intern.h"
 
 #include "PIL_time.h"
@@ -6191,7 +6192,7 @@ void uiTemplateList(uiLayout *layout,
                   "",
                   0,
                   0,
-                  UI_UNIT_X * 0.75,
+                  V2D_SCROLL_WIDTH,
                   UI_UNIT_Y * dyn_data->visual_height,
                   &ui_list->list_scroll,
                   0,
@@ -6331,7 +6332,7 @@ void uiTemplateList(uiLayout *layout,
                   "",
                   0,
                   0,
-                  UI_UNIT_X * 0.75,
+                  V2D_SCROLL_WIDTH,
                   UI_UNIT_Y * dyn_data->visual_height,
                   &ui_list->list_scroll,
                   0,



More information about the Bf-blender-cvs mailing list