RE: [Plib-devel] [PATCH] puListBox: don't use hard-coded colors
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2005-07-14 16:43:23
|
Done ... John F. Fay Technical Fellow, Jacobs/Sverdrup TEAS Group 850-729-6330 joh...@eg... -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Melchior FRANZ Sent: Thursday, July 07, 2005 3:59 PM To: pli...@li... Subject: [Plib-devel] [PATCH] puListBox: don't use hard-coded colors The puListBox uses black as textcolor, no matter what the color scheme is. This makes the text very hard to read on dark backgrounds. Likewise, selected text is hardcoded to be white. The attached patch uses PUCOL_LABEL for text, and (PUCOL_BACKGROUND-PUCOL_LABEL)/2 for selected text. This assumes that background and text have good contrast against each other, and something in between differs enough from either, while still being legible. m. |