[Bf-blender-cvs] [7121f2a6ee9] temp-flexible-spacing: Use flexible spacing for timeline editor

Dalai Felinto noreply at git.blender.org
Mon Jun 11 14:21:33 CEST 2018


Commit: 7121f2a6ee9186d032526228497d0f34317a00fa
Author: Dalai Felinto
Date:   Mon Jun 11 14:21:04 2018 +0200
Branches: temp-flexible-spacing
https://developer.blender.org/rB7121f2a6ee9186d032526228497d0f34317a00fa

Use flexible spacing for timeline editor

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

M	release/scripts/startup/bl_ui/space_time.py

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

diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py
index 7c584b3177b..222c7ebec4f 100644
--- a/release/scripts/startup/bl_ui/space_time.py
+++ b/release/scripts/startup/bl_ui/space_time.py
@@ -36,13 +36,7 @@ class TIME_HT_editor_buttons(Header):
         toolsettings = context.tool_settings
         screen = context.screen
 
-        layout.separator()   # XXX: This should be dynamic (e.g. layout.separator(stretch=1.0))
-        layout.separator()
-        layout.separator()
-        layout.separator()
-        layout.separator()
-        layout.separator()
-        layout.separator()
+        layout.flexible_spacing()
 
         row = layout.row(align=True)
         row.prop(toolsettings, "use_keyframe_insert_auto", text="", toggle=True)
@@ -67,13 +61,7 @@ class TIME_HT_editor_buttons(Header):
         row.operator("screen.keyframe_jump", text="", icon='NEXT_KEYFRAME').next = True
         row.operator("screen.frame_jump", text="", icon='FF').end = True
 
-        layout.separator()  # XXX: This should be dynamic (e.g. layout.separator(stretch=1.0))
-        layout.separator()
-        layout.separator()
-        layout.separator()
-        layout.separator()
-        layout.separator()
-        layout.separator()
+        layout.flexible_spacing()
 
         row = layout.row()
         row.scale_x = 0.95



More information about the Bf-blender-cvs mailing list