UI: Remove Decorators from Keymap Preferences

Improvements to the layout of the Keymaps section of Preferences by removing unneeded Decorator columns.

Differential Revision: https://developer.blender.org/D9726

Reviewed by Hans Goudey
This commit is contained in:
Yevgeny Makarov 2020-12-03 17:23:13 -08:00 committed by Harley Acheson
parent cc6ec71b19
commit a88e6261db
2 changed files with 6 additions and 5 deletions

View File

@ -168,6 +168,7 @@ class Prefs(bpy.types.KeyConfigPreferences):
def draw(self, layout):
layout.use_property_split = True
layout.use_property_decorate = False
is_select_left = (self.select_mouse == 'LEFT')

View File

@ -33,11 +33,11 @@ class Prefs(bpy.types.KeyConfigPreferences):
)
def draw(self, layout):
split = layout.split()
col = split.column()
col.label(text="Select With:")
col.row().prop(self, "select_mouse", expand=True)
split.column()
layout.use_property_split = True
layout.use_property_decorate = False
col = layout.column()
col.row().prop(self, "select_mouse", text="Select with Mouse Button", expand=True)
blender_default = bpy.utils.execfile(os.path.join(DIRNAME, "keymap_data", "blender_default.py"))