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:
authorWilliam Reynish <william@reynish.com>2009-08-24 02:22:58 +0400
committerWilliam Reynish <william@reynish.com>2009-08-24 02:22:58 +0400
commit3eed35ada1f30aa1cdddca1556ed4f83bc57a930 (patch)
tree30698f4c5d20e41140fd661f3b2a46cc77b9f9cc
parent53f66e5c88d1f08ad5df83df67b0f0a27366c8df (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.py2
-rw-r--r--source/blender/editors/interface/interface_layout.c4
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;