Adjusted spacing of header items.
authorWilliam Reynish <william@reynish.com>
Sun, 23 Aug 2009 22:22:58 +0000 (22:22 +0000)
committerWilliam Reynish <william@reynish.com>
Sun, 23 Aug 2009 22:22:58 +0000 (22:22 +0000)
Made toggle buttons less wide, with less extra space around them
Made number widgets wider to allow larger numbers, such as the current frame field in the timeline.

release/ui/space_time.py
source/blender/editors/interface/interface_layout.c

index bfa4d5b64852d6b6025444010fe8d6014438cdef..6e4b5beb161de6fd16003ea404425b9d20995c77 100644 (file)
@@ -22,7 +22,7 @@ class TIME_HT_header(bpy.types.Header):
                        sub.itemM("TIME_MT_frame")
                        sub.itemM("TIME_MT_playback")
 
-               layout.itemR(scene, "use_preview_range", text="PR", toggle=True)
+               layout.itemR(scene, "use_preview_range", text="PR")
                
                row = layout.row(align=True)
                if not scene.use_preview_range:
index 8676fe62a3aca9f0238ef6bacae69d0c2dd71a63..3b4471bd4b95cc0dfffbd19833a8647823f435b4 100644 (file)
@@ -793,11 +793,11 @@ static void ui_item_rna_size(uiLayout *layout, char *name, int icon, PropertyRNA
        }
        else if(ui_layout_vary_direction(layout) == UI_ITEM_VARY_X) {
                if(type == PROP_BOOLEAN && strcmp(name, "") != 0)
-                       w += UI_UNIT_X;
+                       w += UI_UNIT_X/5;
                else if(type == PROP_ENUM)
                        w += UI_UNIT_X/2;
                else if(type == PROP_FLOAT || type == PROP_INT)
-                       w += UI_UNIT_X*2;
+                       w += UI_UNIT_X*3;
        }
 
        *r_w= w;