diff options
-rw-r--r-- | release/scripts/save_theme.py | 12 | ||||
-rw-r--r-- | source/blender/python/api2_2x/doc/Theme.py | 4 | ||||
-rw-r--r-- | source/blender/python/api2_2x/windowTheme.c | 13 |
3 files changed, 20 insertions, 9 deletions
diff --git a/release/scripts/save_theme.py b/release/scripts/save_theme.py index db3a7226cf1..936c12a46f8 100644 --- a/release/scripts/save_theme.py +++ b/release/scripts/save_theme.py @@ -2,14 +2,14 @@ """ Name: 'Save Current Theme...' -Blender: 237 +Blender: 240 Group: 'Export' -Tooltip: 'Save current theme as a bpython script' +Tooltip: 'Save current theme as a BPython script' """ __author__ = "Willian P. Germano" __url__ = ("blender", "elysiun") -__version__ = "2.37 2005/06/06" +__version__ = "2.41 2006/01/16" __bpydoc__ = """\ This script saves the current Theme in Blender as a Blender Python script. @@ -45,8 +45,6 @@ some information on it before sharing it with others. # default, but you are free to edit the ones you generate with this script # and change their license to another one of your choice. # -------------------------------------------------------------------------- -# -# -------------------------------------------------------------------------- # ***** BEGIN GPL LICENSE BLOCK ***** # # Copyright (C) 2005: Willian P. Germano, wgermano _at_ ig.com.br @@ -89,13 +87,13 @@ def write_theme(filename): # \"\"\" # Name: '%s' -# Blender: 237 +# Blender: 241 # Group: 'Themes' # Tooltip: 'Change current theme' # \"\"\" __%s__ = "????" -__%s__ = "2.37" +__%s__ = "2.41" __%s__ = ["blender"] __%s__ = \"\"\"\\ You can edit this section to write something about your script that can diff --git a/source/blender/python/api2_2x/doc/Theme.py b/source/blender/python/api2_2x/doc/Theme.py index cd5ea2c3036..16bdf3f4d84 100644 --- a/source/blender/python/api2_2x/doc/Theme.py +++ b/source/blender/python/api2_2x/doc/Theme.py @@ -184,6 +184,10 @@ class ThemeSpace: @ivar face_select: theme rgba var. @ivar face_dot: theme rgba var. @ivar normal: theme rgba var. + @ivar bone_solid: theme rgba var. + @ivar bon_pose: theme rgba var. + @ivar strip: theme rgba var. + @ivar strip_select: theme rgba var. @ivar syntaxl: theme rgba var. @ivar syntaxn: theme rgba var. @ivar syntaxb: theme rgba var. diff --git a/source/blender/python/api2_2x/windowTheme.c b/source/blender/python/api2_2x/windowTheme.c index d07323d0ccd..4043c9e0faf 100644 --- a/source/blender/python/api2_2x/windowTheme.c +++ b/source/blender/python/api2_2x/windowTheme.c @@ -170,6 +170,10 @@ static PyObject *ThemeSpace_getAttr( BPy_ThemeSpace * self, char *name ) ELSEIF_TSP_RGBA( face_select ) ELSEIF_TSP_RGBA( face_dot ) ELSEIF_TSP_RGBA( normal ) + ELSEIF_TSP_RGBA( bone_solid ) + ELSEIF_TSP_RGBA( bone_pose ) + ELSEIF_TSP_RGBA( strip ) + ELSEIF_TSP_RGBA( strip_select ) ELSEIF_TSP_RGBA( syntaxl ) ELSEIF_TSP_RGBA( syntaxn ) ELSEIF_TSP_RGBA( syntaxb ) @@ -180,14 +184,15 @@ static PyObject *ThemeSpace_getAttr( BPy_ThemeSpace * self, char *name ) else if( !strcmp( name, "facedot_size" ) ) attrib = Py_BuildValue( "i", tsp->facedot_size ); else if( !strcmp( name, "__members__" ) ) - attrib = Py_BuildValue( "[sssssssssssssssssssssssssssssss]", "theme", + attrib = Py_BuildValue("[sssssssssssssssssssssssssssssssssss]", "theme", "back", "text", "text_hi", "header", "panel", "shade1", "shade2", "hilite", "grid", "wire", "lamp", "select", "active", "transform", "vertex", "vertex_select", "edge", "edge_select", "edge_seam", "edge_facesel", "face", "face_select", - "face_dot", "normal", + "face_dot", "normal", "bone_solid", "bone_pose", + "strip", "strip_select", "syntaxl", "syntaxn", "syntaxb", "syntaxv", "syntaxc", "vertex_size", "facedot_size" ); @@ -230,6 +235,10 @@ static int ThemeSpace_setAttr( BPy_ThemeSpace * self, char *name, ELSEIF_TSP_RGBA( face_select ) ELSEIF_TSP_RGBA( face_dot ) ELSEIF_TSP_RGBA( normal ) + ELSEIF_TSP_RGBA( bone_solid ) + ELSEIF_TSP_RGBA( bone_pose ) + ELSEIF_TSP_RGBA( strip ) + ELSEIF_TSP_RGBA( strip_select ) ELSEIF_TSP_RGBA( syntaxl ) ELSEIF_TSP_RGBA( syntaxn ) ELSEIF_TSP_RGBA( syntaxb ) |