icon theme reorg plan

Brian J. Tarricone bjt23 at cornell.edu
Fri Apr 2 00:59:49 CEST 2004


hi all-

benny and i worked up a plan for what to do to unify all the icon stuff 
and make everything Way Cool.  well, ok, benny came up with the ideas, 
and i nodded, smiled, and played devil's advocate while my objections 
were mercilessly destroyed by the Forces of Logic...

anyway, on to the plan.

* _all_ xfce4-related icons will be installed to $datadir/icons, using 
approved spec.  that means 
$datadir/icons/(themename)/(iconsize)/(category)/(filename) for each 
icon file.
* all xfce4-supplied icon theme names will be prefixed with "xfce-" 
(e.g., "Xfce-Noia").
* apps such as the panel, xfdesktop, xffm, mcs-manager, etc. will not 
provide any icons (except for perhaps an app-specific icon, e.g., 
xfce4-menueditor.png).
* a single default theme, with all icons needed for a base install of 
all xfce apps (panel, xfdesktop, xffm, etc.) will be bundled in a single 
package/module, called xfce4-default-theme.
* all 'extra' icon themes will be put into the xfce4-themes package.  i 
suppose it's ok to separate them out some more, e.g., xffm-icons can 
stay if it wants to.  (actually, i prefer this, as it gives the user 
more choice as to what apps they want to use without including stuff 
they don't need.  the base/default theme will still be included in 
xfce4-default-theme regardless.)

pros:
* we're following the freedesktop spec to the letter.
* the "xfce-" prefix ensures that we don't overwrite icons installed by 
non-xfce packages (and vice versa).
* the "xfce-" prefix ensures that we have absolute control over the 
directories the icons live in, and we don't have to worry about other 
non-xfce packages touching them.
* the base packages don't include the bloat of a large number of icon 
themes.
* all packages can ensure that they'll work properly out-of-the-box by 
depending on the xfce4-default-theme package (distro rpm, deb, etc. 
packagers can use dependencies).
* each xfce-xyz icon theme can "inherit" from the standard xyz icon 
theme (if such a counterpart exists) so other non-xfce-provided icons 
will be picked up if need be (this is part of the icon theme standard).
* because everything is in $datadir/icons (often the same $datadir that 
gnome uses), each "xfce-" theme can also inherit the "gnome" theme to 
pick up any generic icons we might like to use (like for category menu 
icons).
* by packaging our own themes we ensure that the "xfce-" prefixed themes 
will contain everything the user needs so their panel, xffm, etc. don't 
ever look b0rked when the appropriate theme is selected.

cons:
* there may be some redundancy, e.g., if a user has the noia icon theme 
installed, and we install xfce-noia, there's the possibility that there 
may be some duplicate icons if the "official" noia theme includes them.
* there's quite a bit of actual work invovled in making this change 
(yeah, i'm really stretching here to find cons).

so, opinions?  benny, feel free to correct me if i've left anything out 
that we talked about.

    -brian



More information about the Xfce4-dev mailing list