Is it possible for a ScriptUI iconbutton to have @2x PNG or SVG icons? My icons are pixelated.
I'm building a simple ScriptUI toolbar with icon buttons…
var theIcon = myPanel.grp.group1.add("iconbutton", undefined, "~/icons/renderfarm.png",{style: "toolbutton"});
theIcon.size = [22, 22];
theIcon.onClick = function() {
}
Problem is, they look fuzzy and pixelated on my MacBook Pro with its high dpi Retina Screen. If this was a website I was building, I would simply use a separate "icon@2x.png" or simply use a single image that was twice as large as I need it and scale it down in css. Or use SVG. Are any of these options available in ScriptUI?
I can't find *any* information online about how to address this issue, such as how to scale an icon to 50%. When I adjust theIcon.size it just changes the size of the containing box, and even just crops the icon if the box is too small.
I see 3rd party scripts with nice smooth icons so I'm curious how they're achieving this.
