UI: increase size of fallback tool popover

This commit is contained in:
Campbell Barton
2019-12-12 13:31:06 +11:00
parent 80c156a8d5
commit 8aadba6ef0

View File

@@ -738,10 +738,10 @@ class ToolSelectPanelHelper:
else: else:
label = "Active Tool" label = "Active Tool"
split = layout.split(factor=0.5) split = layout.split(factor=0.33)
row = split.row() row = split.row()
row.alignment = 'RIGHT' row.alignment = 'RIGHT'
row.label(text="Drag") row.label(text="Drag:")
row = split.row() row = split.row()
row.context_pointer_set("tool", tool) row.context_pointer_set("tool", tool)
row.popover(panel="TOPBAR_PT_tool_fallback", text=label) row.popover(panel="TOPBAR_PT_tool_fallback", text=label)
@@ -751,7 +751,6 @@ class ToolSelectPanelHelper:
# Show a list of tools in the popover. # Show a list of tools in the popover.
@staticmethod @staticmethod
def draw_fallback_tool_items(layout, context): def draw_fallback_tool_items(layout, context):
space_type = context.space_data.type space_type = context.space_data.type
if space_type == 'PROPERTIES': if space_type == 'PROPERTIES':
space_type = 'VIEW_3D' space_type = 'VIEW_3D'