On 04 Aug 2004 12:54:52 +0530, Atul Awasthi wrote:
>
> I can succesfully use gnome icons with semi-auto updates on root menu.
> Here is how it works.
>
> ###################################################################
> SetEnv fvwm_icons $[HOME]/.icons/Marcintesh_OS-W/
> #
> #
> #
> + "System"%$[fvwm_icons]192x192/apps/gnome-system.png%
> Popup MenuSystem
> + "Office"%$[fvwm_icons]192x192/apps/gnome-applications.png%
> Popup MenuOffice
> ###################################################################
>
> And so on... Now next time when I need to change the icons. I just
> need to change the fvwm_icons path. But as you might have guessed,
> there is one big problem with it. The icons are too huge.. Is there a
> way to resize them before using? I know there is since there is a
> wallpaper browser that does the same thing for every PNGs in a
> wallpaper directory.
>
> [code that resizes icons using convert]
Currently there is no way to cause fvwm to resize icons in the menu
automatically. You may resize them on the fly like you suggest, but I
can't recommend this. It would be very slow to resize dozens of icons.
Instead, I may suggest a solution that wm-icons project uses. Prepare all
your complete icon sets before you use them (find appropriate large icons
and resize them using convert). Then your config may look like:
ImagePath $[HOME]/.fvwm/gnome-icons:+
+ "System%menu/gnome-system.png%" Popup MenuSystem
+ "Office%menu/gnome-applications.png%" Popup MenuOffice
And you have these subdirectories in ~/.fvwm/gnome-icons/ dir:
22x22-Marcintesh_OS-W/ with gnome-system.png resized to 22x22
22x22-Windertosh_OS-M/ with gnome-system.png resized to 22x22
menu - a symbolic link to the actual icon set, 22x22-Marcintesh_OS-W
To chenge an icon set, just replace the 'menu' symbolic link (ln -sfn)
and reread the menu definition (or do Restart).
> There is one more thing that needs to be taken care of.. Setting a
> fallback icons that can be used when the icons doesnt exist
You may make your icon sets complete by taking icons from another
incomplete icon sets in GNOME. Or you may create one complete
~/.fvwm/gnome-icons/default set and have all missing icons like
~/.fvwm/gnome-icons/Golden/gnome-game.png to be symlinks to
../default/gnome-game.png.
As you see, my suggestion is not fully automatical and requires some
manual work of preparing icons sets, but it produces the best results
once done. Maybe someone who uses GNOME may suggest the actual code to
automate the creation of such complete resized icon sets.
Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Aug 04 2004 - 03:18:28 BST