HI
How can I set the label color for the plugin I am writing?
HI
How can I set the label color for the plugin I am writing?
Likely it is under
bpy.context.active_object.color
bpy.types.ByteColorAttribute
or
bpy.types.ByteColorAttributeValue
but you are not giving us anywhere near enough information to know that.
row = layout.row()
row.label(text="COUNT (X.Y.Z)", icon='WORLD_DATA')
I want to specify a color for this label
I tried doing this:
row.label(text="COUNT (X.Y.Z)", icon='WORLD_DATA', color='blue')
and
row.label(text="COUNT (X.Y.Z)", icon='WORLD_DATA', textcolor='blue')
Both crashed the panel.
Then I found this. . . .
https://blender.stackexchange.com/questions/8851/in-python-is-it-possible-to-change-the-background-color-of-a-property-ui
It appears that the color is hardcoded in C, immutable.