Module Theme :: Class Theme
[hide private]
[frames] | no frames]

Class Theme

source code

The Theme object

This object gives access to Themes in Blender. Each Theme object is composed of one UI (Use Interface) theme and many Space themes (3d view, Text Editor, Buttons window, etc).

Instance Methods [hide private]
string
getName()
Get the name of this Theme object.
source code
 
setName(s)
Rename this theme.
source code
Blender ThemeSpace or ThemeUI or list of sub-theme types as strings.
get(t=None)
Get a space or the ui (sub)theme from this Theme.
source code
Instance Variables [hide private]
  name
The name of this Theme object.
Method Details [hide private]

getName()

source code 

Get the name of this Theme object.

Returns: string
the name of this Theme object.

setName(s)

source code 

Rename this theme.

Parameters:
  • s (string) - the new name.

get(t=None)

source code 

Get a space or the ui (sub)theme from this Theme.

Parameters:
  • t (string, int or None) - the wanted sub-theme as either:
    • int: -1 for UI or the types in Window.Types for the others;
    • string: use get() to know them (they are case insensitive);
    • nothing: as written above, get() returns a list of names.
Returns: Blender ThemeSpace or ThemeUI or list of sub-theme types as strings.
It depends on the given parameter:
  • (): a list with all available types, as strings;
  • (type): the chosen sub-theme.