[Bf-blender-cvs] [ef7e21fd4a1] master: UI: Reduce vertical margin between panels

Pablo Vazquez noreply at git.blender.org
Mon Oct 18 16:16:48 CEST 2021


Commit: ef7e21fd4a1cea9db1191bd8e00fcc6df105ab33
Author: Pablo Vazquez
Date:   Mon Oct 18 16:16:34 2021 +0200
Branches: master
https://developer.blender.org/rBef7e21fd4a1cea9db1191bd8e00fcc6df105ab33

UI: Reduce vertical margin between panels

In an attempt to reduce scrolling. This can be re-visited if a kind of switch
between "compact" and "comfortable" UI size is implemented in the future.

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

M	source/blender/editors/include/UI_interface.h

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

diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index c808a42a44a..047340ac304 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -253,7 +253,7 @@ enum {
 #define UI_PANEL_CATEGORY_MARGIN_WIDTH (U.widget_unit * 1.0f)
 
 #define UI_PANEL_MARGIN_X (U.widget_unit * 0.4f)
-#define UI_PANEL_MARGIN_Y (U.widget_unit * 0.2f)
+#define UI_PANEL_MARGIN_Y (U.widget_unit * 0.1f)
 
 /* but->drawflag - these flags should only affect how the button is drawn. */
 /* NOTE: currently, these flags *are not passed* to the widget's state() or draw() functions



More information about the Bf-blender-cvs mailing list