[Bf-python] Feature Suggestion: Script colors
Bart
bart at neeneenee.de
Fri Jun 25 15:08:14 CEST 2004
A guide for making better script interfaces should be published (many
bad designs and colors used).
A way to access to the interface colors (controls takes colors of theme
but the rest do not) of Blender would be nice too. So scripts could
always look like the rest of Blender:
PanelColor PanelHeaderColor
PanelAlpha PanelBackgroundColor
TextColor TextHighlightColor TextInputColor
HeaderColor HeaderHighlightColor
BackgroundColor
OutlineColor
NeutralColor ActionColor SettingColor
MenuColor MenuHighlightColor MenuBackgroundColor
MenuTextColor MenuItemColor MenuItemHighlightColor
Example:
glClearColor(BackgroundColor, PanelAlpha)
glClear(GL_COLOR_BUFFER_BIT)
glColor3f(PanelBackgroundColor)
glRecti(10, 10, 100, 100)
More information about the Bf-python
mailing list