From a31807ed7c755e65bd244025bd575fd2b183561a Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 26 Apr 2018 15:25:59 +0200 Subject: Reduce size of scrollbars that don't contain scale markings More changes will follow, this is just an initial tweak. --- source/blender/editors/include/UI_view2d.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/include/UI_view2d.h') diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index f6e31e0bd22..65c69c7f287 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -103,8 +103,11 @@ enum eView2D_Gridlines { /* ------ Defines for Scrollers ----- */ /* scroller area */ -#define V2D_SCROLL_HEIGHT (0.85f * U.widget_unit) -#define V2D_SCROLL_WIDTH (0.85f * U.widget_unit) +#define V2D_SCROLL_HEIGHT (0.55f * U.widget_unit) +#define V2D_SCROLL_WIDTH (0.55f * U.widget_unit) +/* For scrollers with scale markings (text written onto them) */ +#define V2D_SCROLL_HEIGHT_TEXT (0.85f * U.widget_unit) +#define V2D_SCROLL_WIDTH_TEXT (0.85f * U.widget_unit) /* scroller 'handles' hotspot radius for mouse */ #define V2D_SCROLLER_HANDLE_SIZE (0.6f * U.widget_unit) -- cgit v1.2.3