[Bf-blender-cvs] [e271e2d] master: Align Author field and label horizontally
Jonathan Williamson
noreply at git.blender.org
Wed Jan 1 01:20:49 CET 2014
Commit: e271e2d84e3ebb64ea64d88976101569867e3dc9
Author: Jonathan Williamson
Date: Tue Dec 31 18:12:51 2013 -0600
https://developer.blender.org/rBe271e2d84e3ebb64ea64d88976101569867e3dc9
Align Author field and label horizontally
This aligns the User Preferences > File > Author field and label horizontally, saving space and making it more consistent with author text fields within the same section.
===================================================================
M release/scripts/startup/bl_ui/space_userpref.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index d60a88b..96cb61f 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -932,8 +932,13 @@ class USERPREF_PT_file(Panel):
col.label(text="Text Editor:")
col.prop(system, "use_tabs_as_spaces")
- col.label(text="Author:")
- col.prop(system, "author", text="")
+ colsplit = col.split(percentage=0.95)
+ col1 = colsplit.split(percentage=0.3)
+
+ sub = col1.column()
+ sub.label(text="Author:")
+ sub = col1.column()
+ sub.prop(system, "author", text="")
class USERPREF_MT_ndof_settings(Menu):
More information about the Bf-blender-cvs
mailing list