On Wed, 26 Dec 2012, John Rash escribió:

> On Wed, Dec 26, 2012 at 4:51 PM, Robert William Fuller
> <[email protected]> wrote:
> >> On 12/26/12, John Rash<[email protected]>  wrote:
> >> and what really annoys me is how huge svg icons looks into docks (like
> >> from Nautilus/Caja (see that folder on the last icon), Chromium (that
> >> huge circle), etc.) -
> >> http://img803.imageshack.us/img803/4559/wmaker01.png - is there any
> >> way to adjust that? (like just inside 48x48 center from 64x64, just
> >> like the other ones?)
> >
> >
> > I like the large icons.  They are easy to see.  I would rather see an option
> > to shrink them than having no choice in the matter.
> >
> >
> >
> > --
> > To unsubscribe, send mail to [email protected].
> 
> I don't like the larger icons either, sometimes they are so big you
> can't even tell what the app is. I usually just make my own 48x48
> icons and have the app ignore the supplied ones, but it would be nice
> to have the shrinking option.
> 
> --
> John Rash
> [email protected]

Hi,

it could be easy to implement, but I don't have time now. The idea is:

1. Create a new option in WPrefs to set the image size for icons (the image for 
icon, not the dock size). Something like wPreferences.image_size.
2. The function to resize the icon image is wIconValidateIconSize. Is used here:

kix@kentin:~/src/wmaker/wmaker-crm/src$ grep wIconValidateIconSize *c
icon.c:RImage *wIconValidateIconSize(RImage *icon, int max_size)
icon.c: image = wIconValidateIconSize(image, wPreferences.icon_size);
switchpanel.c:  image = wIconValidateIconSize(image, ICON_SIZE);
wdefaults.c:    image = wIconValidateIconSize(image, max_size);
wdefaults.c:    image = wIconValidateIconSize(image, wPreferences.icon_size);
wmspec.c:       image = wIconValidateIconSize(image, wPreferences.icon_size);
kix@kentin:~/src/wmaker/wmaker-crm/src$

In all places, except switchpanel.c, the size should be changed from 
wPreferences.icon_size to wPreferences.image_size (if defined, else, use 
wPreferences.icon_size). I didn't check the "max_size" case, sorry, but is the 
same idea.

Then, the icon image could be bigger, or smaller than the icon_size.

IMO this is better chage the images all these functions than change the size in 
wIconValidateIconSize(), because is used in switchpanel.c, and in this function 
the image is smaller.

Best regards,
kix


-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/


-- 
To unsubscribe, send mail to [email protected].

Reply via email to