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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-16 20:42:26 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-17 13:28:56 +0300
commitf351c7bf23a3a794582b12c53ccba864f04ae944 (patch)
treeba49076724e62c335cbffe4fb43ba77b9f2745a6 /release/scripts/modules
parent944d6f11cb7a0942c308d50e7fdbbf58a38463c9 (diff)
Preferences: tweak themes/addons/keyamps buttons at the top.
Make layouts more consistent between them, give more room for search field. Addon online resources links were removed as the links are dead.
Diffstat (limited to 'release/scripts/modules')
-rw-r--r--release/scripts/modules/rna_keymap_ui.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/release/scripts/modules/rna_keymap_ui.py b/release/scripts/modules/rna_keymap_ui.py
index 268bcb6a7be..cc54a7b01b5 100644
--- a/release/scripts/modules/rna_keymap_ui.py
+++ b/release/scripts/modules/rna_keymap_ui.py
@@ -368,22 +368,14 @@ def draw_keymaps(context, layout):
kc_active = wm.keyconfigs.active
spref = context.space_data
- subsplit = layout.split()
- subcol = subsplit.column()
-
- col = subcol.column()
-
# row.prop_search(wm.keyconfigs, "active", wm, "keyconfigs", text="Key Config")
text = bpy.path.display_name(kc_active.name)
if not text:
text = "Blender (default)"
- row = col.row()
-
- row.operator("wm.keyconfig_import", text="Import...", icon='IMPORT')
- row.operator("wm.keyconfig_export", text="Export...", icon='EXPORT')
+ split = layout.split(factor=0.6)
- row.separator()
+ row = split.row()
rowsub = row.row(align=True)
@@ -391,10 +383,16 @@ def draw_keymaps(context, layout):
rowsub.operator("wm.keyconfig_preset_add", text="", icon='ADD')
rowsub.operator("wm.keyconfig_preset_add", text="", icon='REMOVE').remove_active = True
+ rowsub = split.row(align=True)
+ rowsub.operator("wm.keyconfig_import", text="Import...", icon='IMPORT')
+ rowsub.operator("wm.keyconfig_export", text="Export...", icon='EXPORT')
+
+ row = layout.row()
+ col = layout.column()
+
# layout.context_pointer_set("keyconfig", wm.keyconfigs.active)
# row.operator("wm.keyconfig_remove", text="", icon='X')
- row.separator()
- rowsub = row.split(factor=0.33, align=True)
+ rowsub = row.split(factor=0.3, align=True)
# postpone drawing into rowsub, so we can set alert!
layout.separator()