From: SourceForge.net <no...@so...> - 2009-10-05 14:50:06
|
Bugs item #2860827, was opened at 2009-09-17 18:45 Message generated for change (Settings changed) made by patthoyts You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2860827&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 02. Appearance Group: current: 8.5.7 >Status: Pending >Resolution: Fixed Priority: 4 Private: No Submitted By: Yegor Derevenets (yegord) >Assigned to: Pat Thoyts (patthoyts) Summary: Rendering text of disabled label widgets on Windows Initial Comment: Tk 8.5 on Windows started to paint "shadows" for text in disabled labels, checkboxes, buttons in order to give them 3d look. Tk 8.4 didn't do that. Shadow color is determined by calling GetSysColor(COLOR_3DHILIGHT) (see tkWinButton.c). Such behaviour makes it impossible to fully customize appearance of disabled widgets on Tcl level and leads to horrible widget rendering in cases of non-standard background color. See attached Tkabber screenshot. Probably, reasonable solution of this problem would be to add either an additional Tk option for this shadow color value (which defaults to what GetSysColor returns) or an option for switching this look-and- feel trick with shadow on and off. ---------------------------------------------------------------------- >Comment By: Pat Thoyts (patthoyts) Date: 2009-10-05 15:49 Message: Cleaned up the unused variable and applied this patch to the 8.6 HEAD. ---------------------------------------------------------------------- Comment By: Yegor Derevenets (yegord) Date: 2009-09-29 17:33 Message: Confirm: patch works well (also, it adds a warning about unused sysColor variable). ---------------------------------------------------------------------- Comment By: Pat Thoyts (patthoyts) Date: 2009-09-29 00:07 Message: You might try the attached patch and see if that is ok. This patch disables the embossing effect when the widget background is non-standard. ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2009-09-17 19:22 Message: For reference: 2004-06-15 Anton Kovalenko <a_k...@us...> * win/tkWinButton.c: Add a 3D highlight to disabled *buttons and labels, the same way as it's now done for disabled menu entries. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2860827&group_id=12997 |