You are here: mozdev.org > iconpacks
 

firefox & mozilla icon packs

Location: Icon Packs > Docs/Tutorials > Tutorial
For creating icons, try The Gimp.

You want to make icons for Firefox or Mozilla and you don't know where to start. This is the right place for you.

You need to know which icons are used by your browser. You can download default icon sets from our IconPack Resources page or read list of icons in the next table.

Firefox Icons Mozilla Icons
bookmark-window.ico
certManager.ico
certWindow.ico
deviceManager.ico
downloadManager.ico
extensionsManager.ico
help.ico
jsconsoleWindow.ico
loadDevice.ico
main-window.ico
metadata.ico
themesManager.ico
winInspectorMain.ico

Additional Icons
default.ico
chatzilla-window.ico
abcardWindow.ico
addressbookWindow.ico
bmPropsWindow.ico
bookmark-window.ico
chatzilla-window.ico
downloadManager.ico
editorWindow.ico
findBookmarkWindow.ico
findHistoryWindow.ico
help.ico
history-window.ico
jsconsoleWindow.ico
main-window.ico
messengerWindow.ico
msgcomposeWindow.ico
venkman-window.ico
winInspectorWindow.ico

Filetypes Icons
gif-file.ico
html-file.ico
image-file.ico
jpeg-file.ico
misc-file.ico
script-file.ico
xml-file.ico
xul-file.ico

Windows icon packs use 'ico' files and Linux icon packs have 'xpm' files. Converting is not too difficult at all and can easily be accomplished with a great icon tool such as Aha-soft IconXP, Iconomaker or The Gimp. Every new icon (with 'ico' extension) has to be converted into two 'xpm' icons with the following properties: 32x32 (16M) for *.xpm and 16x16 (16M) for *16.xpm. 32x32 and 16x16 is for size and 16M is default for colors). Just open your *.ico file, click on appropriate size that you want to convert (32x32 or 16x16) and convert it selecting "Export Image..." item from the file menu.

To use your new icons, you can install them manualy. Just place it in 'chrome\icons\default' directory within your browser's folder. If folders 'icons' and 'default' don't exist, you need to create them.

Now, when you have all icons, you need to make 'xpi' installer. It is a 'zip' archive with '.xpi' extension. Before you make your archive, get all your icons into an empty folder named "icons". You then need to create an 'install.js' in the parent folder of "icons". This javascript tells Firefox/Mozilla where to put your icons. It's a simple file that can be created with any text-editor (like Notepad). I've reproduced my 'install.js' below. The parts you should change are in red.


//<--------------------Begin MXR install.js for Mozilla-------------------->

const name            = "My Icon Pack";
const regname         = "/MXR/MozillaIconRestorer";
const version         = "1.0";

var err;
err = initInstall(name, regName, version);
logComment("initInstall: " + err);

var fProgram;
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);

err = addDirectory("", version, "icons", fProgram, "chrome/icons/default/", true);
err = performInstall();
logComment("performInstall() returned: " + err);

//<--------------------End MXR install.js for Mozilla-------------------->

Mozilla has different icons for every application form, for example 'main-window.ico' and 'messengerWindow.ico' are not the same by deffault. Firefox has a different philosophy - it has a same icon for every application form. You can design icons for every form (If that is a case, use deffault 'install.js' for Mozilla.) or you can make just one. Name it "default.ico", convert it into 'default.xpm' and 'default16.xpm' and xpi it with the 'install.js' file below. You don't need to make any folders. This iconpack is for Windows and Linux both.


//<--------------------Begin MXR install.js for Firefox-------------------->

const name            = "My Icon Pack";
const regname         = "/MXR/FirefoxIconRestorer";
const version         = "0.5";

// OS type detection
function getPlatform( )
{
    var platformStr;
    var platformNode;
    if('platform' in Install)
    {
        platformStr = new String(Install.platform);
        if (!platformStr.search(/^Macintosh/))
            platformNode = 'mac';
        else if (!platformStr.search(/^Win/))
            platformNode = 'win';
        else
            platformNode = 'unix';
    }
    else
    {
        var fOSMac  = getFolder("Mac System");
        var fOSWin  = getFolder("Win System");
        if(fOSMac != null)
            platformNode = 'mac';
        else if(fOSWin != null)
            platformNode = 'win';
        else
            platformNode = 'unix';
    }
    return platformNode;
}

platformNode = getPlatform( );
if (platformNode == 'mac') {					//mac version
  alert("MAC OS version currently not supported.");
}
else {
  initInstall(name, regname, version);
  dir = getFolder("Chrome", "icons/default");
  setPackageFolder(dir);
  if (platformNode == 'win') {					//win version
    const ico = "default.ico";
    addFile("", version, ico, dir, "", true);
    addFile("", version, ico, dir, "bookmark-window.ico", true);
    addFile("", version, ico, dir, "certManager.ico", true);
    addFile("", version, ico, dir, "certWindow.ico", true);
    addFile("", version, ico, dir, "deviceManager.ico", true);
    addFile("", version, ico, dir, "downloadManager.ico", true);
    addFile("", version, ico, dir, "extensionsManager.ico", true);
    addFile("", version, ico, dir, "help.ico", true);
    addFile("", version, ico, dir, "jsconsoleWindow.ico", true);
    addFile("", version, ico, dir, "loadDevice.ico", true);
    addFile("", version, ico, dir, "main-window.ico", true);
    addFile("", version, ico, dir, "metadata.ico", true);
    addFile("", version, ico, dir, "themesManager.ico", true);
    addFile("", version, ico, dir, "winInspectorMain.ico", true);
  }
  else {							//unix version
    const xpm = "default.xpm";
    const xpm16 = "default16.xpm";
    addFile("", version, xpm, dir, "", true);
    addFile("", version, xpm16, dir, "", true);
    addFile("", version, xpm, dir, "bookmark-window.ico", true);
    addFile("", version, xpm16, dir, "bookmark-window16.ico", true);
    addFile("", version, xpm, dir, "certManager.ico", true);
    addFile("", version, xpm16, dir, "certManager.ico16", true);
    addFile("", version, xpm, dir, "certWindow.ico", true);
    addFile("", version, xpm16, dir, "certWindow.ico16", true);
    addFile("", version, xpm, dir, "deviceManager.ico", true);
    addFile("", version, xpm16, dir, "deviceManager.ico16", true);
    addFile("", version, xpm, dir, "downloadManager.ico", true);
    addFile("", version, xpm16, dir, "downloadManager.ico16", true);
    addFile("", version, xpm, dir, "extensionsManager.ico", true);
    addFile("", version, xpm16, dir, "extensionsManager.ico16", true);
    addFile("", version, xpm, dir, "help.ico", true);
    addFile("", version, xpm16, dir, "help.ico16", true);
    addFile("", version, xpm, dir, "jsconsoleWindow.ico", true);
    addFile("", version, xpm16, dir, "jsconsoleWindow.ico16", true);
    addFile("", version, xpm, dir, "loadDevice.ico", true);
    addFile("", version, xpm16, dir, "loadDevice.ico16", true);
    addFile("", version, xpm, dir, "main-window.ico", true);
    addFile("", version, xpm16, dir, "main-window.ico16", true);
    addFile("", version, xpm, dir, "metadata.ico", true);
    addFile("", version, xpm16, dir, "metadata.ico16", true);
    addFile("", version, xpm, dir, "themesManager.ico", true);
    addFile("", version, xpm16, dir, "themesManager.ico16", true);
    addFile("", version, xpm, dir, "winInspectorMain.ico", true);
    addFile("", version, xpm16, dir, "winInspectorMain.ico16", true);
  }
  if (0 == getLastError()){
    performInstall();
  }else{
    cancelInstall();
  }
}

//<--------------------End MXR install.js for Firefox-------------------->

I was inspired to write this tutorial by Grayrest's tutorial from http://gr.ayre.st/moz/resources/tutorials/iconstutorial.shtml

Check out the old tutorial.

User Notes: [?]

If you do not get a response to a question posted in this forum, please try sending a message to the project's mailing list or to the project owner directly.

[1] Submitted by: Tim on Tuesday 20th July 2004 at 14:18 -0400

There are additional icons for Firefox windows:

downloadManager.ico
themesManager.ico
extensionsManager.ico
metadata.ico (Properties dialog)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9
[2] Submitted by: Rory on Monday 13th September 2004 at 15:58 -0400

Can you tell me how I can have a web page display an icon on the Firefox tab? Your page, for instance, has an eye icon on it's tab. I've noticed many sites have these custom icons, but when I visit my own page it just has a default blank page icon. I have the default skin and haven't installed any icon packs yet.

Thanks,
Rory

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
[4] Submitted by: eu4ria on Sunday 17th October 2004 at 16:29 -0400

Rory to add an icon to your website place this in the head

<LINK REL="SHORTCUT ICON" HREF="http://yourwebsite/favicion.ico">

and have an icon in the root of your website called favicon.ico

HTH

Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
[5] Submitted by: ^_^ on Sunday 9th October 2005 at 23:59 -0400

extensionsManager.ico handles both Extensions and Themes manager windows now.

Note: The upcoming Firefox 1.5 will have a Firefox icon on all windows and not just XP/2000, one of the reasons for the iconpacks for Firefox users on win9x

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b5) Gecko/20051008 Firefox/1.4.1
[6] Submitted by: jbug on Saturday 17th December 2005 at 09:29 -0500

oh thank you so much. i know how to make icons but couldn't figure out how to make these *.xpi files.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
[7] Submitted by: Yaanu on Thursday 2nd February 2006 at 21:25 -0500

Could you use the same information in this to make a Thunderbird or Sunbird icon?

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
[8] Submitted by: - on Saturday 4th February 2006 at 07:23 -0500

Re: comment #7 - yes definetely.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
[9] Submitted by: Mick on Tuesday 21st February 2006 at 18:55 -0500

I found your tutorial very interesting.

For Firefox which icon name is the icon that would appear with a shortcut on the desktop ?

Would it be the "bookmark-windows.ico" or another one?

Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
[10] Submitted by: - on Thursday 23rd February 2006 at 16:39 -0500

re: comment #9

To change the shortcut icon, you have to do it manually. You can right-click the shortcut, properties, change icon, and browse to C:Program FilesMozilla Firefoxchromeiconsdefault and choose the icon there
Or: see the Windows integration tutorial.
Hope this helps :-)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
[11] Submitted by: Mick on Thursday 23rd February 2006 at 19:51 -0500

Thank you for your suggestions.

I know that I could do them one by one, but I have about 90 shortcut icons,
so I hoped there was an easy way to do it with just a few clicks.

The latest Firefox 1.5.01 as downloaded does not have a separate folder "Mozilla Firefoxchromeiconsdefault" (unlike Netscape browser),
and I assume the icon files are within the Firefox.exe file.
Therefore, to gain access to an individual Firefox "icon.ico" a new icons folder
has to be created under chrome or outside the Firefox folder.

Just putting in an icons file under chrome does not seem to work and probably needs
a "xxx.js" file to be written and placed in the chrome folder for Firefox to recognize
any icon file under chrome.

I have read the Windows intergration tutorial, and the Resource Hacker program
seems to remove all the original icons not just the shortcut ones.
I don't want to change all Firefox icons, just the one that appear with
the desktop shortcuts.

Any other suggestions would be greatly appreciated, and any helpful comments if I'm
not seeing things correctly.

Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
[12] Submitted by: - on Friday 24th February 2006 at 15:10 -0500

When Firefox is installed, the icons it uses are part of the firefox.exe file. If you create the folder chrome/icons/default and put icons in there like main-window.ico , bookmarks-manager.ico etc. Firefox will pick those up and use those instead. When you install an icon pack on this site, this is what it does - it creates that folder and extracts icon files to it.

The problem is that Windows still uses the icons in the firefox executable file for its shortcuts, so the only way to change them is to either modify them each manually or change the icons inside the firefox executable which is what you can do with Resource Hacker. Changing the icons inside the firefox executable means that the shortcut icon on the desktop, in the start menu, and in quick launch will be changed.

You definitely don't need to put a javascript file in the chrome folder. You have to put the icons in the folder C:Program FilesMozilla Firefoxchromeiconsdefault - ie. not in the chrome folder, but in a folder called 'default' which is in a folder called 'icons' which is in the folder 'chrome'. These folders don't exist when you install firefox, but they're created when you install an icon pack from this site, or you can do it yourself.

Hope this helps! :-)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
[13] Submitted by: Jason on Saturday 29th April 2006 at 13:24 -0400

Sound as a pound

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
[14] Submitted by: belladona123 on Saturday 24th March 2007 at 01:41 -0700

Hi How can I change splash icon and favicon icon thanks for your answer in advance

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
[15] Submitted by: - on Saturday 24th March 2007 at 11:09 -0700

Re: comment #14:

To change the favicon of a website, see comment #4.

But what do you mean by splash icon?

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

Back to the top

Best viewed with Firefox. Haven't got it yet? Well get it now!

Icon Packs | F.A.Q. | Submissions | Tutorials | Give us Your Feedback | View in other languages

No Software Patents!