Adjust kmi header
authorraa <roaoao@gmail.com>
Fri, 10 Mar 2017 12:10:40 +0000 (15:10 +0300)
committerraa <roaoao@gmail.com>
Fri, 10 Mar 2017 12:10:40 +0000 (15:10 +0300)
release/scripts/modules/rna_keymap_ui.py

index 2ca7a7997a5cc37d406f837cb763632666ee86f0..a1a4e5b8763a42f00b63fb7fdb562fe827f66614 100644 (file)
@@ -128,16 +128,15 @@ def draw_kmi(display_keymaps, kc, km, kmi, layout, level):
     else:
         box = col.column()
 
-    split = box.split(percentage=0.01)
+    split = box.split()
 
     # header bar
-    row = split.row()
+    row = split.row(align=True)
     row.prop(kmi, "show_expanded", text="", emboss=False)
-
-    row = split.row()
     row.prop(kmi, "active", text="", emboss=False)
 
     if km.is_modal:
+        row.separator()
         row.prop(kmi, "propvalue", text="")
     else:
         row.label(text=kmi.name)