|
From: Jeff H. <je...@Ac...> - 2005-09-29 01:09:12
|
Joe English wrote: > Tile widgets with an -image (buttons, labels, etc.) currently > draw the image stippled when they are in the disabled state, > like the core widgets do. > > Would anyone complain if this feature went away? Went away in favor of not doing anything for disabled state? No, that wouldn't be nice, but ... > This behavior is disabled on OSX to work around an AquaTk bug > (#1100117); according to a recent post on comp.lang.tcl [*] > it doesn't work all > that well under X11 either (specifically, when the image has an > alpha channel); and even when it does work it doesn't look > very good (common practice nowadays is to use a desaturated, > darkened, or grayscale image instead of stippling). Under X11 the stippling looks fine to me, but not on OS X or Windows. I actually had code that desaturated the image by default on Windows. It may even be x-platform code (operating on the image). I think the reason I didn't commit it is that it operated on the fly (desaturating the image at each request for repaint). > Note that the Tile widgets allow the program to specify > state-dependent auxilliary images, so this effect is still > possible; it just takes some extra work on the programmer's > part. We could provide a utility routine to automatically > generate "grayed-out" versions of icon images to ease the pain. State based is best, but what about the default action again? Jeff |