On 17 Dec 2002 06:43:05 +0100, Olivier Chapuis wrote:
> 
> On Mon, Dec 16, 2002 at 10:41:13PM -0500, Dan Espen wrote:
> > Mikhael Goikhman <[EMAIL PROTECTED]> writes:
> > > 
> > > For example, try the current:
> > > 
> > >   TitleStyle Active Pixmap /any/image.png
> > > 
> > > If title width is small, only the left part of image.png is shown.
> > > If title width is big, image.png is centered. Kind of FixedImage.
> > > 
> > > For me this is useless. What I and hopefully Olivier mean is this:
> > > If title width is small, only the left part of image.png is shown.
> > > If title width is big, image.png is stretched.
> 
> I am not sure to understand.

The first if-else refers to the current Pixmap that we want to replace.
The second if-else refers to how I understand your original suggestion.

> > I think it makes sense to attack this from the point of view of the
> > image, not the container.  Ie.
> > 
> > If the image is larger, its truncated.
> 
> This is the current Pixmap behavior
> 
> > If the image is smaller, its stretched.
> 
> The new StretchedPixmap do this, but also if the image is larger it's
> resized to fit into the destination. Is "FitPixmap" ok for this?

FitPixmap is ok, but sounds unnatural to me. Looking at the dictionary...
AdjustedPixmap or Pixmap (this behaviour is good to be a default).

> We may add this behavior (If the image is smaller, its stretched, if
> not do nothing) and name it StretchedPixmap (it is easy).

StretchedPixmap or Pixmap (this is good to be a default too).

> I do not want to add one tone of new Pixmap style type now (related to
> tile and x/y directions). I see one style type which is useful *and*
> easy to implement (I do not want to spent 2 hours or more to debug 10
> new complicate style type): If the image is smaller do nothing (as
> Pixmap), if the image is larger resize it to fit into the
> destination. Is "ShrunkPixmap" ok?

The name is ok, but I don't think it is very useful (centered image).
I listed the only useful cases for me in another thread: fit/tile/stretch.

I would only support these image convertion options in Colorset.
All *Pixmap that are not colorset options may be supported, but obsolete.
For me the only good syntax, open for extensions, is:

  Colorset n Image|SecondImage|Shape [Tiled|Stretched|Adjusted] image.xpm

The default is either Stretched or Adjusted, I don't care.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to