diff options
author | William Reynish <william@reynish.com> | 2009-08-22 13:21:08 +0400 |
---|---|---|
committer | William Reynish <william@reynish.com> | 2009-08-22 13:21:08 +0400 |
commit | 2aa2512a43781f6ac8937c152398e9de731aef07 (patch) | |
tree | a43df77bee383d41ad7d0f745c36e6b9e44d4f97 | |
parent | fe0dfc23159e93a7d8d544749ff5e87f0ba6191f (diff) |
Tiny User Prefs tweaks. Also put the Save As Default button in header so it stays put.
-rw-r--r-- | release/ui/space_userpref.py | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/release/ui/space_userpref.py b/release/ui/space_userpref.py index acd3d3eb44b..82ed857c7ea 100644 --- a/release/ui/space_userpref.py +++ b/release/ui/space_userpref.py @@ -7,6 +7,11 @@ class USERPREF_HT_header(bpy.types.Header): def draw(self, context): layout = self.layout layout.template_header(menus=False) + + userpref = context.user_preferences + + layout.operator_context = "EXEC_AREA" + layout.itemO("wm.save_homefile", text="Save As Default") class USERPREF_MT_view(bpy.types.Menu): __space_type__ = 'USER_PREFERENCES' @@ -59,11 +64,11 @@ class USERPREF_PT_view(bpy.types.Panel): sub1.itemS() sub1.itemS() sub1.itemS() - sub1.itemR(view, "show_mini_axis") + sub1.itemR(view, "show_mini_axis", text="Display Mini Axis") sub2 = sub1.column() sub2.enabled = view.show_mini_axis - sub2.itemR(view, "mini_axis_size") - sub2.itemR(view, "mini_axis_brightness") + sub2.itemR(view, "mini_axis_size", text="Size") + sub2.itemR(view, "mini_axis_brightness", text="Brightness") col = split.column() sub = col.split(percentage=0.85) @@ -360,6 +365,8 @@ class USERPREF_PT_filepaths(bpy.types.Panel): sub2.itemR(paths, "use_relative_paths") sub2.itemR(paths, "compress_file") sub2.itemR(paths, "load_ui") + sub2.itemS() + sub2.itemS() sub2.itemL(text="Auto Save:") sub2.itemR(paths, "save_version") sub2.itemR(paths, "recent_files") @@ -367,7 +374,7 @@ class USERPREF_PT_filepaths(bpy.types.Panel): sub2.itemR(paths, "auto_save_temporary_files") sub3 = sub2.column() sub3.enabled = paths.auto_save_temporary_files - sub3.itemR(paths, "auto_save_time") + sub3.itemR(paths, "auto_save_time", text="Timer (mins)") class USERPREF_PT_language(bpy.types.Panel): __space_type__ = 'USER_PREFERENCES' @@ -388,24 +395,16 @@ class USERPREF_PT_language(bpy.types.Panel): col = split.column() col.itemR(lan, "language") - col.itemR(lan, "translate_tooltips") - col.itemR(lan, "translate_buttons") - col.itemR(lan, "translate_toolbox") + col.itemL(text="Translate:") + col.itemR(lan, "translate_tooltips", text="Tooltips") + col.itemR(lan, "translate_buttons", text="Labels") + col.itemR(lan, "translate_toolbox", text="Toolbox") + col.itemS() + col.itemS() col.itemR(lan, "use_textured_fonts") -class USERPREF_PT_bottombar(bpy.types.Panel): - __space_type__ = 'USER_PREFERENCES' - __label__ = " " - __show_header__ = False - - def draw(self, context): - layout = self.layout - userpref = context.user_preferences - - split = layout.split(percentage=0.8) - split.itemL(text="") - layout.operator_context = "EXEC_AREA" - split.itemO("wm.save_homefile", text="Save As Default") + col = split.column() + bpy.types.register(USERPREF_HT_header) bpy.types.register(USERPREF_MT_view) @@ -415,5 +414,4 @@ bpy.types.register(USERPREF_PT_edit) bpy.types.register(USERPREF_PT_system) bpy.types.register(USERPREF_PT_filepaths) bpy.types.register(USERPREF_PT_language) -bpy.types.register(USERPREF_PT_bottombar) |