Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevgeny Makarov <jenkm>2020-03-09 18:58:34 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-03-09 19:11:24 +0300
commitbada2dcafd98a24802af13cb115880a3011b4153 (patch)
tree332facbbd4e8d5af02276aae062ca1dd5cd6d125 /release
parent6f4612a7cc428a8e0c8266e50f52bcda3615a586 (diff)
UI: improve layout of keymap preferences, more consistent with other areas
Differential Revision: https://developer.blender.org/D6592
Diffstat (limited to 'release')
-rw-r--r--release/scripts/presets/keyconfig/blender.py56
1 files changed, 26 insertions, 30 deletions
diff --git a/release/scripts/presets/keyconfig/blender.py b/release/scripts/presets/keyconfig/blender.py
index 73be645d037..0bff9974aaa 100644
--- a/release/scripts/presets/keyconfig/blender.py
+++ b/release/scripts/presets/keyconfig/blender.py
@@ -156,39 +156,35 @@ class Prefs(bpy.types.KeyConfigPreferences):
)
def draw(self, layout):
- is_select_left = (self.select_mouse == 'LEFT')
+ layout.use_property_split = True
- split = layout.split()
- col = split.column(align=True)
- col.label(text="Select With:")
- col.row().prop(self, "select_mouse", expand=True)
+ is_select_left = (self.select_mouse == 'LEFT')
+ # General settings.
+ col = layout.column()
+ col.row().prop(self, "select_mouse", text="Select with Mouse Button", expand=True)
+ col.row().prop(self, "spacebar_action", text="Spacebar Action", expand=True)
if is_select_left:
- col.label(text="Activate Gizmo:")
- col.row().prop(self, "gizmo_action", expand=True)
- else:
- col.label()
- col.label()
-
- col.prop(self, "use_select_all_toggle")
-
- col = split.column(align=True)
- col.label(text="Spacebar Action:")
- col.row().prop(self, "spacebar_action", expand=True)
-
- layout.label(text="3D View:")
- split = layout.split()
- col = split.column()
- col.prop(self, "use_v3d_tab_menu")
- col.prop(self, "use_pie_click_drag")
- col.prop(self, "use_v3d_shade_ex_pie")
- col = split.column()
- col.label(text="Tilde Action:")
- col.row().prop(self, "v3d_tilde_action", expand=True)
- col.label(text="Middle Mouse Action:")
- col.row().prop(self, "v3d_mmb_action", expand=True)
- col.label(text="Alt Middle Mouse Drag Action:")
- col.row().prop(self, "v3d_alt_mmb_drag_action", expand=True)
+ col.row().prop(self, "gizmo_action", text="Activate Gizmo Event", expand=True)
+
+ # Checkboxes sub-layout.
+ col = layout.column()
+ sub = col.column(align=True)
+ sub.prop(self, "use_select_all_toggle")
+
+ # 3DView settings.
+ col = layout.column()
+ col.label(text="3D View")
+ col.row().prop(self, "v3d_tilde_action", text="Grave Accent / Tilde Action", expand=True)
+ col.row().prop(self, "v3d_mmb_action", text="Middle Mouse Action", expand=True)
+ col.row().prop(self, "v3d_alt_mmb_drag_action", text="Alt Middle Mouse Drag Action", expand=True)
+
+ # Checkboxes sub-layout.
+ col = layout.column()
+ sub = col.column(align=True)
+ sub.prop(self, "use_v3d_tab_menu")
+ sub.prop(self, "use_pie_click_drag")
+ sub.prop(self, "use_v3d_shade_ex_pie")
blender_default = bpy.utils.execfile(os.path.join(DIRNAME, "keymap_data", "blender_default.py"))