Class ThemeUI
source code
The User Interface sub-theme
This can be accessed with theme.get(t), where t can be 'ui' or -1.
The available variables follow the internal (C coded) ThemeUI struct in
Blender. Most of them represent rgba (red, green, blue, alpha) colors,
with each component in the range [0, 255]. There is more than one way
to access them.
Examples:
print outline.R
outline.r = 180 # it's case insensitive
outline[0] = 94 # 0 for red, 1 for green, ...
outline = [200, 200, 200, 255] # setting all components at once
|
action
theme rgba var.
|
int
|
drawType
the draw type (minimal, rounded, etc) in the range [1, 4].
|
string
|
iconTheme
the filename (without path) for the icon theme PNG in
.blender/icons/
|
|
menu_back
theme rgba var.
|
|
menu_hilite
theme rgba var.
|
|
menu_item
theme rgba var.
|
|
menu_text
theme rgba var.
|
|
menu_text_hi
theme rgba var.
|
|
neutral
theme rgba var.
|
|
num
theme rgba var.
|
|
outline
theme rgba var.
|
|
popup
theme rgba var.
|
|
setting
theme rgba var.
|
|
setting1
theme rgba var.
|
|
setting2
theme rgba var.
|
|
text
theme rgba var.
|
|
text_hi
theme rgba var.
|
|
textfield
theme rgba var.
|
|
textfield_hi
theme rgba var.
|
string
|
theme
the parent Theme for this object.
|