[Bf-committers] Feature Suggestion: Script colors
Bart
bf-committers@blender.org
Fri, 25 Jun 2004 15:08:14 +0200
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)