diff options
author | William Reynish <william@reynish.com> | 2009-08-24 02:22:58 +0400 |
---|---|---|
committer | William Reynish <william@reynish.com> | 2009-08-24 02:22:58 +0400 |
commit | 3eed35ada1f30aa1cdddca1556ed4f83bc57a930 (patch) | |
tree | 30698f4c5d20e41140fd661f3b2a46cc77b9f9cc | |
parent | 53f66e5c88d1f08ad5df83df67b0f0a27366c8df (diff) |
Adjusted spacing of header items.
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.
-rw-r--r-- | release/ui/space_time.py | 2 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/release/ui/space_time.py b/release/ui/space_time.py index bfa4d5b6485..6e4b5beb161 100644 --- a/release/ui/space_time.py +++ b/release/ui/space_time.py @@ -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: diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 8676fe62a3a..3b4471bd4b9 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -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; |