Обсуждение: Creation of XPM files for wxWidgets
I'm trying to play a little with the standard icon set included in pgAdmin. I've found out that wxWidgets expects a certain variation of the XPM image format that is output by ImageMagick (e.g., the "_xpm" ending in the variable). Does anyone have a conversion script or other way to create this format automatically from some other format like PNG? I don't want to edit dozens of icons by hand. Thanks.
Peter Eisentraut wrote: >I'm trying to play a little with the standard icon set included in pgAdmin. >I've found out that wxWidgets expects a certain variation of the XPM image >format that is output by ImageMagick (e.g., the "_xpm" ending in the >variable). Does anyone have a conversion script or other way to create this >format automatically from some other format like PNG? I don't want to edit >dozens of icons by hand. Thanks. > > I don't have a handy tool either, I'm using gimp for conversion (presenting the same problem as IM to you). IMHO the current icons are not really first choice, and I'd like to reduce the main toolbar size from 32x32 icons to 16x16 either to save space (some more opinions about this, guys?). But we needed something colourful quickly, to fill the buttons. If you're goint to present a reworked set of better images, I'd like to use them. Regards, Andreas
Peter Eisentraut wrote: >My ideas was to try to use the KDE crystal icons to make it fit better on a >KDE desktop. Obviously this is not suitable as a universal replacement, but >if you ever think of allowing icon themes then that would be very cool. >(Additionally one would have to be able to configure the font and the >background color of the widgets. I'm not sure if that is already possible.) > > Font change is possible with cvs head. Color should be acquired from gtk/win32 settings. >However, compared to the normal KDE desktop, the icons converted to XPM and >built into pgAdmin look very bad because they don't have alpha transparency. >Does wxWidgets allow PNG icons with alpha transparency? > > Don't know, we'll have to try that. >Here is a screenshot: http://www.credativ.com/~pei/pgadmin-snapshot.png > > > Looks nice! Regards, Andreas
Am Sunday 25 April 2004 19:09 schrieb Andreas Pflug: > IMHO the current icons are not really first choice, and I'd like to > reduce the main toolbar size from 32x32 icons to 16x16 either to save > space (some more opinions about this, guys?). Good idea (looks more consistent with other applications, I think) > But we needed something > colourful quickly, to fill the buttons. If you're goint to present a > reworked set of better images, I'd like to use them. My ideas was to try to use the KDE crystal icons to make it fit better on a KDE desktop. Obviously this is not suitable as a universal replacement, but if you ever think of allowing icon themes then that would be very cool. (Additionally one would have to be able to configure the font and the background color of the widgets. I'm not sure if that is already possible.) However, compared to the normal KDE desktop, the icons converted to XPM and built into pgAdmin look very bad because they don't have alpha transparency. Does wxWidgets allow PNG icons with alpha transparency? Here is a screenshot: http://www.credativ.com/~pei/pgadmin-snapshot.png