UI: Remove empty space in tool settings header with toolbar visible
So far, when the toolbar was visible, the tool settings header would show empty space instead of the tool icon. This was probably to avoid jumping of the layout. However this empty space looks quite jarring, and alignments in that corner are all over the place with it (causing visual noise). On the other hand the jumping seems like a minor problem, it's quite subtle, esp since the viewport overlay text does a similar jump. Having the icon appear and disappear based on the toolbar visibility also causes visual distraction, so the problem was mitigated at best. Pull Request: https://projects.blender.org/blender/blender/pulls/112972
This commit is contained in:
parent
ba767610cf
commit
060634e611
|
@ -801,11 +801,9 @@ class ToolSelectPanelHelper:
|
|||
layout.label(text=" " + iface_(item.label, "Operator"), icon_value=icon_value)
|
||||
layout.separator()
|
||||
else:
|
||||
if context.space_data.show_region_toolbar:
|
||||
layout.template_icon(icon_value=0, scale=0.5)
|
||||
else:
|
||||
if not context.space_data.show_region_toolbar:
|
||||
layout.template_icon(icon_value=icon_value, scale=0.5)
|
||||
layout.separator()
|
||||
layout.separator()
|
||||
|
||||
draw_settings = item.draw_settings
|
||||
if draw_settings is not None:
|
||||
|
|
Loading…
Reference in New Issue