GNOME Colors 48×48

My favourite icon theme is the GNOME Colors. I’ve been using it on CRUX 3.6.1 with Xfce 4.12 for over a month and I noticed some issues. Certain programs would not display some 48×48 sized icons. So, I tried to find a solution.

Long story short: I ended up modifying the GNOME Colors icon theme, adding PNG icons of size 48×48. I uploaded the modified source, as well as the ready to use theme to my GitHub repo.

It turns out the problem is not specific to this particular icon theme. For example, Meld does not display these two icons when I am using Tango:

When I started the program from the terminal the errors that show are:

/usr/bin/meld:172: GtkWarning: Error loading theme icon 'document-new' for stock: Unable to load image-loading module: /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /usr/lib/librsvg-2.so.2: undefined symbol: pango_attr_insert_hyphens_new
  gtk.main()
/usr/bin/meld:172: GtkWarning: Error loading theme icon 'folder' for stock: Unable to load image-loading module: /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /usr/lib/librsvg-2.so.2: undefined symbol: pango_attr_insert_hyphens_new
  gtk.main()

Does the problem arise from an incompatibility between librsvg and pango? May be the issue occurs when a SVG icon should be displayed in size 48×48? I tried re-compilig librsvg, pango, pangox, gdk-pixbuf but there was no improvement. I also updated the gdk-pixbuf cache:

gdk-pixbuf-query-loaders --update-cache

Nothing.

I searched the net, but I did not find any solution. So, I came up with a workaround… This problem does not occur when using the Gnome icon theme, which has 48×48 PNG icons. Well, if the programs expect these icons to be present, let’s make them available. I downloaded the source of Gnome colors and generated the additional PNG files from the SVGs by the following command:

inkscape --without-gui *.svg --export-type=png --export-width=48 --export-height=48

I placed the PNG icons in their respective folders and updated the index.theme files accordingly. There’s one difference between the list of newly generated 48×48 PNG icons and, say, the 32×32 ones. Some 32×32 icons are actually symlinks to an icon that they are identical to. The newly generated icons, however, are all PNG files so they take up some extra space.

The icon theme seems to work fine and Meld is happy. I may do this for Tango at some point as well.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s