@vitorbalbio, only png 64x64 works now.
@all: i see some confusion, however to be clear: with my patch you can upload icons via python, just call this bpy.utils.load_icon(path = “”)
this function return an integer pointing to the new icon. The returned value can be used in operator, label, everything that support the keyword icon_value for example: layout.label(“some text”, icon_value = 870). if you read the doc at moment only label and prop support custom icon(material, or texture icon). I’ve also added support for operator.
this is how it could be implemented in python:
icon = bpy.utils.load_icon("path_to_icon")
icon2 = bpy.utils.load_icon("path_to_icon2")
icon3 = bpy.utils.load_icon("path_to_icon3")
[...] #some code here
#later when drawing panel, menu, etc...
def draw(self, context):
layout = self.layout
scene = context.scene
layout.label(text=" Simple Row:", icon_value = icon)
layout.operator("operator_rna", icon_value = icon2)
layout.prop(scene,prop,icon_value = icon3)
Has i said is not a big hack, since custom icon are already supported, at the moment work only for texture and material icon, now you can use you’r own icon, virtually is possible to customize the entire interface.
There is one big problem, icons can’t be resized… this mean if used in a bad way, create great confusion in the UI, this goes away from the purpose of this patch…