[Bf-blender-cvs] [a6016bf5af9] blender-v2.92-release: UI: Fix ugly alignment of timeline popover buttons

Hans Goudey noreply at git.blender.org
Tue Jan 26 18:55:43 CET 2021


Commit: a6016bf5af95ab9f7a7b75a0d129555be12d3f8b
Author: Hans Goudey
Date:   Tue Jan 26 11:55:36 2021 -0600
Branches: blender-v2.92-release
https://developer.blender.org/rBa6016bf5af95ab9f7a7b75a0d129555be12d3f8b

UI: Fix ugly alignment of timeline popover buttons

Apparently things have changed since {rB98d205508977a6f72bf55},
and putting the buttons in two separate rows is no longer enough
to keep the right-most popover button in the timeline header from
aligning with the menu buttons. This just adds a separator large
enough to avoid the alignment.

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

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 3b9ce5311f3..774e2938deb 100644
--- a/release/scripts/startup/bl_ui/space_time.py
+++ b/release/scripts/startup/bl_ui/space_time.py
@@ -107,6 +107,9 @@ class TIME_MT_editor_menus(Menu):
             text="Keying",
         )
 
+        # Add a separator to keep the popover button from aligning with the menu button.
+        sub.separator(factor=0.4)
+
         if horizontal:
             sub = row.row(align=True)



More information about the Bf-blender-cvs mailing list