UI: input preferences layout tweaks for keymap search and zoom settings

Differential Revision: https://developer.blender.org/D6979
This commit is contained in:
Yevgeny Makarov 2020-03-09 16:54:38 +01:00 committed by Brecht Van Lommel
parent 8bc8713beb
commit da101eddef
2 changed files with 5 additions and 4 deletions

View File

@ -390,7 +390,7 @@ def draw_keymaps(context, layout):
# layout.context_pointer_set("keyconfig", wm.keyconfigs.active)
# row.operator("preferences.keyconfig_remove", text="", icon='X')
rowsub = row.split(factor=0.3, align=True)
rowsub = row.split(factor=0.4, align=True)
# postpone drawing into rowsub, so we can set alert!
layout.separator()
@ -405,7 +405,8 @@ def draw_keymaps(context, layout):
ok = True
# go back and fill in rowsub
rowsub.prop(spref, "filter_type", text="")
rowsubsub = rowsub.row(align=True)
rowsubsub.prop(spref, "filter_type", expand=True)
rowsubsub = rowsub.row(align=True)
if not ok:
rowsubsub.alert = True

View File

@ -1470,9 +1470,9 @@ class USERPREF_PT_navigation_zoom(NavigationPanel, CenterAlignMixIn, Panel):
flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False)
flow.row().prop(inputs, "view_zoom_method", text="Zoom Method", expand=True)
flow.row().prop(inputs, "view_zoom_method", text="Zoom Method")
if inputs.view_zoom_method in {'DOLLY', 'CONTINUE'}:
flow.row().prop(inputs, "view_zoom_axis", expand=True)
flow.row().prop(inputs, "view_zoom_axis")
flow.prop(inputs, "invert_mouse_zoom", text="Invert Mouse Zoom Direction")
flow.prop(inputs, "invert_zoom_wheel", text="Invert Wheel Zoom Direction")