Ao tentar descobrir o ícone usado para um tipo MIME, notei que os temas dos ícones gnome
e oxygen
no meu Arch Linux e Ubuntu 14.04 tinham as seguintes estruturas de pastas:
gnome/48x48:
apps mimetypes
gnome/32x32:
apps mimetypes
...
oxygen/128x128:
actions apps categories devices emblems emotes mimetypes places status
oxygen/16x16:
actions animations apps categories devices emblems emotes mimetypes places special status
...
Dimensiona primeiro e digita neles.
Nos temas padrão do Xubuntu ( elementary-xfce*
), a ordem foi invertida:
elementary-xfce/actions/:
128 16 22 24 32 48 64 96 symbolic
elementary-xfce/animations/:
128 16 22 24 32 48 64
elementary-xfce/apps/:
128 16 22 24 32 48 64 96 symbolic
elementary-xfce/categories/:
128 16 22 24 32 48 64 96 symbolic
elementary-xfce-darker/actions/:
128 16 22 24 32 48 64 symbolic
elementary-xfce-darkest/actions/:
128 16 22 24 32 48 64 symbolic
Presumivelmente, ambos funcionam. Existem duas maneiras padrão de organizar os temas dos ícones? Se não, qual é o caminho padrão?
A especificação no freedesktop.org diz apenas:
In the theme directory are also a set of subdirectories containing image files. Each directory contains icons designed for a certain nominal icon size, as described by the index.theme file. The subdirectories are allowed to be several levels deep, e.g. the subdirectory "48x48/apps" in the theme "hicolor" would end up at $basedir/hicolor/48x48/apps.
O pseudocódigo dado não parece fazer uma distinção, a menos que eu tenha perdido alguma coisa. No entanto, a parte sobre aplicativos adicionando seus próprios ícones favorece um caminho:
So, you're an application author, and want to install application icons so that they work in the KDE and Gnome menus. Minimally you should install a 48x48 icon in the hicolor theme. This means installing a PNG file in
$prefix/share/icons/hicolor/48x48/apps
. Optionally you can install icons in different sizes. For example, installing a svg icon in$prefix/share/icons/hicolor/scalable/apps
means most desktops will have one icon that works for all sizes. You might even want to install icons with a look that matches other well known themes so your application will fit in with some specific desktop environment.
É alguma coisa? Ou os temas do ícone do Xubuntu são bugs?