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 245772 - Some Versioning Highlighting Colors do not work on source file names.
Summary: Some Versioning Highlighting Colors do not work on source file names.
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-17 21:42 UTC by MackSix
Modified: 2014-07-29 02:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2014-07-17 21:42:48 UTC
Goto Tools>>Options>>Fonts & Colors>>Versioning>>Versioning System:Mercurial


Locally Modified or Locally New does not work for these Highlighting colors:

Cyan
Light Gray
Orange
Pink
White
Yellow

Many Custom Colors will not work, for example on Locally New:

This color won't work: [172,255,181]
This color won't work: [141,216,207]
This color will work: [154,75,217]

Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-1921-on-20140717)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Ondrej Vrabec 2014-07-18 05:25:17 UTC
That makes sense that they not work. NetBeans by default render fonts with regard to their background. In case the font color does not have enough contrast (on the active background) the default color is used.
For example it indeed makes sense that White does not work, can you imagine how white font looks on a white background? You can disable the NetBeans rendering with -J-Dnb.useSwingHtmlRendering=true.

But since you're about a tenth reporter and people are evidently confused by this i think we could at least add a warning to the options panel: Not every selected color will apply depending on an eventual background color.
Maybe even better would be to show an example, however it is not always possible because backgrounds may vary from component to component throughout NetBeans.
Comment 2 Ondrej Vrabec 2014-07-28 12:59:20 UTC
fix: http://hg.netbeans.org/core-main/rev/f2ced7d5e73e
Comment 3 Quality Engineering 2014-07-29 02:33:42 UTC
Integrated into 'main-silver', will be available in build *201407290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f2ced7d5e73e
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #245772 - Some Versioning Highlighting Colors do not work on source file names.
info label added to the options panel.