Bug #13715 forced foreground color without forced background color
Submitted: 3 Oct 2005 13:48 Modified: 13 Oct 2005 9:31
Reporter: Gabriel B Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.1.14 OS:Windows (windows xp)
Assigned to: Mike Lischke CPU Architecture:Any

[3 Oct 2005 13:48] Gabriel B
Description:
foreground colours are set in the code, overriding system defaults. This makes the software null for high contrast color schemes.

the query text appears black on black. Keywords appear dark red/blue on black.

The results table:
-odd rows: white on black (respecting system wide colors?)
-even rows: white on white (background color overiden but foreground color ignored?)

screenshot: http://flickr.com/photos/gcb/49002033/

How to repeat:
set the windows theme to classic high contrast (white on black)

Suggested fix:
a) Use system colors.
b) Give a syntax highlight color options.
c) option to disable alternate row backgrounds.
[3 Oct 2005 13:51] Gabriel B
filled as S3 by mistake, sorry
[4 Oct 2005 7:57] Vasily Kishkin
I was able to reproduce the bug. Screen copy is attached.
[4 Oct 2005 7:57] Vasily Kishkin
screen copy

Attachment: screencopy.GIF (image/gif, text), 25.55 KiB.

[13 Oct 2005 9:31] Mike Lischke
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html
[13 Oct 2005 13:15] Gabriel B
I saw that the category was changed to query browser, but this also happens with administrator. Should I open another bug report?

Heres a screen shot of the bug in mysql Administrator
  http://flickr.com/photo_zoom.gne?id=52124362&size=o
[13 Oct 2005 13:21] Gabriel B
screenshots of the same error at mysql administrator

Attachment: mysqlBUG2.gif (image/gif, text), 192.36 KiB.

[9 Apr 2006 14:56] Egal
This is still a problem with some of the text in the Table Editor window of MySQL Query Browser 1.1.17 and 1.1.20. Should this bug be reopened or should another bug be created?
Specifics: 
Table headings for "NOT NULL" and "AUTO INC" do not use the system colour so they are still black.
Text in the table for the flags (UNSIGNED, ZERO FILL, BINARY, ASCII, UNICODE etc) do not use the system colour so they are still black.
Text when editing existing values in the Column Name, Datatype, Default Value, and Comment do not use the system colour so they are still black.

Fortunately there is a workaround; use the form underneath the table to edit/read the values instead of using the table directly, but that is not ideal.

Solution is to use the system foreground colour instead of hardcoding it.