This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 62920 - Cvs node of modified file not readable when selected
Summary: Cvs node of modified file not readable when selected
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Petr Nejedly
: 58518 (view as bug list)
Depends on:
Reported: 2005-08-24 09:42 UTC by Jaromir Uhrik
Modified: 2008-12-22 20:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Screenshot attached... (4.78 KB, image/png)
2005-08-24 09:43 UTC, Jaromir Uhrik

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2005-08-24 09:42:30 UTC
[daily build #200508231800]
Using Windows Classic L&F.
1.Open cvs project
2.Modify some source of the project
3.Select the node of modified file in Projects View
It is not possible to read the node name because BG and FG colors are related -
see attached screenshot.
Comment 1 Jaromir Uhrik 2005-08-24 09:43:04 UTC
Created attachment 24174 [details]
Screenshot attached...
Comment 2 _ pkuzel 2005-08-24 15:00:14 UTC
I think it's Node's HTML display name renderer bug. It should handle such
situations under all L&Fs.
Comment 3 _ tboudreau 2005-08-24 21:42:05 UTC
Fix is to add a call to HtmlLabelUI.ensureContrastingColor() into HtmlRenderer.renderHtml(), in the code 
that converts HTML color definitions into Color objects.  Pass the foreground and background colors, 
and it will return a foreground color that will be readable no matter what.  HtmlLabelUI does this now 
for plain strings, but not for HTML strings with embedded coloring.
Comment 4 Marian Mirilovic 2005-09-19 10:48:30 UTC
assigne to default owner
Comment 5 Petr Nejedly 2005-09-21 11:02:08 UTC
The renderer actually tries to fix the color but it never gets the background.
Working on it.
Comment 6 Petr Nejedly 2005-09-21 15:45:18 UTC
Comment 7 Jaromir Uhrik 2005-09-22 08:39:23 UTC
Verified in dev build #200509211800.
Comment 8 Petr Nejedly 2005-10-06 22:08:14 UTC
*** Issue 58518 has been marked as a duplicate of this issue. ***