From 85cf56ecbc62dc8d77ba177d01b32065e63166cc Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Mon, 25 Nov 2019 11:42:49 +0100 Subject: 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. --- source/blender/editors/interface/interface_templates.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/editors') 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, -- cgit v1.2.3