Hey, guys, does anyone know how to apply an iconpack to everything?
Hey, guys, does anyone know how to apply an iconpack to everything? I. E. Is there a script command I can use to apply an icon style which I can use to loop through all folders on the desktop and the AppDrawer to apply that style to everything?
]]>
< ![CDATA[
Settings -> Desktop -> Icon Pack
]]>
< ![CDATA[
It won’t apply to folders, it only applies to icons that are directly in the AppDrawer or the Desktop.
]]>
< ![CDATA[
Sorry, it only works for the current container.
If you want to use a script, you can write a small recursive function which would like the following pseudo code (possibly syntax or coding error):
var iconPack = ‘your_icon_pack_package_name’;
// apply to a desktop and sub containers
function applyIconPack(var container) {
container.getProperties().edit().setString(‘iconPack’, iconPack).commit();
container.applyIconPack(true);
var items = container.getItems();
var count = items.getLength();
for(var i=0; i
var type = item.getType();
if(type==’FOLDER’ || type==’PANEL’) {
applyIconPack(item);
}
}
}
applyIconPack(LL.getCurrentDesktop());
]]>
< ![CDATA[
Thank you, Pierre, I’ll see what I can do to get that up and usable.
]]>