The python UI API is pretty amazing, but one area where it falls a bit short is the inability to scale icons when they are used on buttons for operators and properties. Currently, the only way to show an icon larger than the default is to use template_icon()
, but that comes with the drawback of being completely static (It doesn’t do anything when clicked).
This stack exchange question that was asked a year ago, does a good job of explaining a good use case, and the rationale for wanting this added:
This is how icons look currently when placed on a big button:
but ideally, they would scale along with the
layout.scale_y
attribute.
Obviously, I don’t know if there’s some reason this hasn’t been added, but if it was, it would open up a lot of possibilities, and would make the UI API a lot more powerful.