diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-06-11 15:33:53 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-06-11 15:46:35 +0300 |
commit | d90fc119c204c760c4c8dcb269706c82bf51ca4b (patch) | |
tree | 33059e9bac58118019502a337b1a6436ace6d1c3 /release | |
parent | 74051111eb2b0a0453d497018c48b0f33cfa8db7 (diff) |
UI: Separator spacer
This support layout.separator_spacer() to be used by headers as a way to
dynamically separate the ui buttons.
Right now no UI file is changed, though we can use this right away in the
timeline, and shortly after in the viewport header (moving settings from
the topbar to it).
Original design by William Reynish.
Review: Campbell Barton
D3468
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_time.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py index 7c584b3177b..16ad53ca642 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.separator_spacer() 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.separator_spacer() row = layout.row() row.scale_x = 0.95 |