[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43262] trunk/blender/release/scripts/ startup/bl_ui/space_userpref.py: move theme presets out of the header into the main panel.

Campbell Barton ideasman42 at gmail.com
Tue Jan 10 17:30:21 CET 2012


Revision: 43262
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43262
Author:   campbellbarton
Date:     2012-01-10 16:30:16 +0000 (Tue, 10 Jan 2012)
Log Message:
-----------
move theme presets out of the header into the main panel.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_userpref.py

Modified: trunk/blender/release/scripts/startup/bl_ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_userpref.py	2012-01-10 16:20:01 UTC (rev 43261)
+++ trunk/blender/release/scripts/startup/bl_ui/space_userpref.py	2012-01-10 16:30:16 UTC (rev 43262)
@@ -97,13 +97,7 @@
         elif userpref.active_section == 'THEMES':
             layout.operator("ui.reset_default_theme")
 
-            layout.label(text="Presets:")
-            layout.menu("USERPREF_MT_interface_theme_presets", text=bpy.types.USERPREF_MT_interface_theme_presets.bl_label)
-            row = layout.row(align=True)
-            row.operator("wm.interface_theme_preset_add", text="", icon='ZOOMIN')
-            row.operator("wm.interface_theme_preset_add", text="", icon='ZOOMOUT').remove_active = True
 
-
 class USERPREF_PT_tabs(Panel):
     bl_label = ""
     bl_space_type = 'USER_PREFERENCES'
@@ -551,8 +545,19 @@
         theme = context.user_preferences.themes[0]
 
         split_themes = layout.split(percentage=0.2)
-        split_themes.prop(theme, "theme_area", expand=True)
 
+        sub = split_themes.column()
+
+        sub.label(text="Presets:")
+        subrow = sub.row(align=True)
+
+        subrow.menu("USERPREF_MT_interface_theme_presets", text=USERPREF_MT_interface_theme_presets.bl_label)
+        subrow.operator("wm.interface_theme_preset_add", text="", icon='ZOOMIN')
+        subrow.operator("wm.interface_theme_preset_add", text="", icon='ZOOMOUT').remove_active = True
+        sub.separator()
+
+        sub.prop(theme, "theme_area", expand=True)
+
         split = layout.split(percentage=0.4)
 
         layout.separator()



More information about the Bf-blender-cvs mailing list