On Thu, 21 Dec 2000, James Henstridge wrote:

> On Thu, 21 Dec 2000, Vlad Harchev wrote:
> 
> > On 21 Dec 2000, Lars Clausen wrote:
> > 
> > > On Thu, 21 Dec 2000, Vlad Harchev wrote:
> > > 
> > > > 
> > > >  Hi,
> > > > 
> > > >  I use very dark Gtk theme (SatinBlack). All icons that use black are
> > > >  almost invisible on the very dark "buttons" they are placed on. I'm
> > > >  going to modify dia so that it will use default text forgeground color
> > > >  or color of text foreground of some special named widget defined in
> > > >  .gtkrc (e.g.  "icon-foreground-color") instead of black for icons. Would
> > > >  you accept the patch that adds this functionality? If yes, could you
> > > >  please tell me the approximate name of the file and function that
> > > >  creates "palette" icons so that I won't need to grep around all dia
> > > >  tree?
> > > 
> > > The icons are stored as pixmaps (.xpm) files in pixmaps directories,
> > > e.g. for the standard tools, they are in objects/standard/pixmaps.
> > > However, most of them are not generated, so it'll require some picture
> > > trickery to make them another color.  The generated icons are from
> > > app/color_area.c, linewidth_area.c and lineprops_area.c.  If you can get
> > > all this to work well, I'm sure a patch will be appreciated.
> > 
> >  Thank you for the explanation.
> >  Where do the icons get loaded (where gdk_pixmap_colormap_create_from_xpm_d is
> > called that is relevant to icons) ?
> 
> Most of the pixmaps are compiled into the binary.  There are no special
> colour transformations done on them (except for handling the shape mask).

 No, most of the pixmaps are loaded from ${prefix}/dia/{Shapes}{Sheets}
 
> Probably the easiest way to fix this would be to go through the images and
> put a light grey (or other light colour) border around the images.

 I've already written and tested a replacement for 
 gdk_pixmap_colormap_create_from_xpm_d, I have to write analog of
 gdk_pixmap_colormap_create_from_xpm().

 It seems I will post a patch later today.
 
> James.
> 

 Best regards,
  -Vlad

Reply via email to