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 228367

Summary: [dark] Common infrastructure for editor hints uses hard-coded colors
Product: editor Reporter: Stanislav Aubrecht <saubrecht>
Component: CSL (API & infrastructure)Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 225542    
Attachments: Hints option window

Description Stanislav Aubrecht 2013-04-08 10:59:09 UTC
The text area for hint description in Options window uses CSS with hard-coded background and foreground colors so it doesn't look nice in dark-color themes. See attached screenshot.
Comment 1 Stanislav Aubrecht 2013-04-08 11:01:52 UTC
Created attachment 133364 [details]
Hints option window
Comment 2 Milutin Kristofic 2013-04-08 13:41:15 UTC
If I remove css file as it is in java hints, I have black background with black font. It is ok? Do you see java hints?
Comment 3 Stanislav Aubrecht 2013-04-08 13:45:25 UTC
(In reply to comment #2)
> If I remove css file as it is in java hints, I have black background with black
> font. It is ok? Do you see java hints?

This should do the trick:

descriptionTextArea.putClientProperty( JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE );
Comment 4 Milutin Kristofic 2013-04-08 14:20:38 UTC
Thank you.
http://hg.netbeans.org/jet-main/rev/a535fb8bdba3