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 230699 - [Navigator|Call Hierachy|Find Usages] Selected item isn't readable because of low contrast - black text on blue background
Summary: [Navigator|Call Hierachy|Find Usages] Selected item isn't readable because of...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: A11Y
: 233076 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-03 22:03 UTC by markiewb
Modified: 2013-09-02 22:02 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the issue (44.34 KB, image/png)
2013-06-03 22:03 UTC, markiewb
Details
Shows the issue in other views (117.25 KB, image/png)
2013-06-18 23:01 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-06-03 22:03:13 UTC
Created attachment 135297 [details]
Shows the issue

ACTUAL: black text on blue background for selected items can not/hardly be read - see screenshot
EXPECTED: eye-friendly colors/high contrast

---
Product Version: NetBeans IDE Dev (Build 201305262300)
Updates: Updates available
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
Comment 1 Tomas Zezula 2013-06-04 14:03:16 UTC
On Mac the selected text is all white, the Html string is rendered by HtmlRenderer and the colour is changed depending on the contrast. This is the reason why it's different on Win & Mac.
 However the java.navigation/org.netbeans.modules.java.navigation.ElementScanningTask has hardcoded type color (TYPE_COLOR = "#707070"). If there is a safer colour in UIDefaults feel free to reassign back.
Comment 2 Stanislav Aubrecht 2013-06-10 10:13:51 UTC
When a tree or list item is selected the whole text should be painted with the default foreground color (i.e. white on Windows or Mac) instead of any custom color defined in item's HTML text.

The tree model should strip all HTML color tags when rendering a selected item.
Comment 3 markiewb 2013-06-18 23:01:45 UTC
Created attachment 136002 [details]
Shows the issue in other views

FYI: The issue is also present in 
* "call hierarchy" and 
* "find usages"
* "search results"
Comment 4 markiewb 2013-06-18 23:08:40 UTC
FYI: also here https://netbeans.org/bugzilla/show_bug.cgi?id=229561
Comment 5 markiewb 2013-06-24 18:55:08 UTC
FYI: This issue also affects the Project View. 

Enable "versioning label decorator" and select a modified project. The versioning status information is black on blue.
Comment 6 markiewb 2013-06-24 18:57:23 UTC
@Jan: Any news here? Any UI review? IMHO this is an important topic. 
The proposed solution is https://netbeans.org/bugzilla/show_bug.cgi?id=230699#c2
Comment 7 Ondrej Vrabec 2013-08-15 09:09:16 UTC
*** Bug 233076 has been marked as a duplicate of this bug. ***
Comment 8 Jan Peska 2013-08-19 09:30:04 UTC
reassigning to Standa.
Comment 9 Stanislav Aubrecht 2013-08-20 09:45:07 UTC
core-main ca2bded5ec62
Comment 10 Quality Engineering 2013-08-22 04:28:34 UTC
Integrated into 'main-silver', will be available in build *201308212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ca2bded5ec62
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #230699 - use default foreground when a tree or list item is selected
Comment 11 markiewb 2013-09-02 22:02:51 UTC
Verified in 201309020001. Tried several views like project view, java navigator view, files view