Shortcut icon changer
Shortcut icon changer
This script will allow you to quickly and easily change the icon of a shortcut as suggested by me here https://plus.google.com/113157980543803349502/posts/CWBSDuJ5Vj7
Its extremely simple and after picking a character there’s no more error handling so make sure you pick something for every option and don’t press cancel or the script will fail. This is Pierre’s script i just edited it to make it easier and quicker to use for those who dont want to mess about with the code every time they want to change an icon (like me) hope you find it useful 👍
How to use: Set the script to show in the item menu.
« Shortcut icon changer (Previous Post)
(Next Post) Detaching items via script seems to be not working for me at all in v14a10, untested on previous versions. »
setIcon();
function setIcon(symbol, color1, color2)
{
symbol = prompt(“Enter a single character or number”, “”);
if (symbol.length > 1)
{
Android.makeNewToast(“Enter a single character or number”, false).show();
return;
}
size = LL.pickNumericValue(“Icon Size”, 96, “int”, 96, 200, 1, “px”)
color1 = LL.pickColor(“Foreground Color”, 0xffffffff, true);
color2 = LL.pickColor(“Background Color”, 0xffff5722, true);
getEvent().getItem().setCustomIcon(Image.createTextIcon(symbol, size, color1, color2, null));
}