[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: The icons of disabled actions are not shaded
From:       Antonio Larrosa =?iso-8859-1?q?Jim=E9nez?= <larrosa () kde ! org>
Date:       2001-10-13 0:26:44
[Download RAW message or body]

El Vie 12 Oct 2001 22:11, Dmitry Samoyloff escribió:
> Carsten Pfeiffer wrote:
> > > If you want to know, BarIcon() helped me.
> >
> > BarIcon is a bad idea tho, as the action will have a pixmap
> > instead of the filename then. The action can only scale the
> > pixmap when it needs to show a bigger icon. If you supply the
> > filename, it can try to load a bigger version.
> >
> > Can you try installing the icon into
> > $(kde_datadir)/appname/pics ?
>
> Did you mean I must just to change the folder's name? This isn't
> working. Here is what I have in Makefile.am:
>
> pics_DATA = icon1.png icon2.png ...
> picsdir = $(kde_datadir)/appname/pics

icons should be installed into 
$(kde_datadir)/appname/icons/hicolor/22x22/actions
where 22x22 can be any of 16x16, 22x22, 32x32 or 48x48
and actions can be any of actions, apps, mimetypes, etc.
The best way to do it is by using some Makefile magic done by the am_edit 
script. To do so, just substitute the above lines (pics_DATA and picsdir) 
with:
KDE_ICON = AUTO

and then rename your icons (icon1.png, icon2.png) to something like
hi22-action-icon1.png, hi32-mime-icon2.png or hi16-app-appname.png
and they'll be moved to the correct directory automatically (in fact, 
they'll be installed to the main directory instead of your own). In case 
you don't want to use the main directory for your icons (because you'll 
install too many for example), just use your current method but be sure to 
use the correct directories.

> It working only with BarIcon() :-(
>

As Carsten said, you shouldn't use BarIcon with actions, because that'll 
make toolbar icons to be inserted into menu bars instead of leaving the 
decision of which icons to insert where, to KAction.

Greetings,

--
Antonio Larrosa Jimenez
KDE Core developer  - larrosa@kde.org
http://perso.wanadoo.es/antlarr
KDE - The development framework of the future, today.

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic