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 233056 - [dark] For Dark Nimbus theme css editor is using a wrong settings to color selector ID's
Summary: [dark] For Dark Nimbus theme css editor is using a wrong settings to color se...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-19 10:45 UTC by Selpi
Modified: 2013-07-23 13:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (45.03 KB, text/plain)
2013-07-19 10:45 UTC, Selpi
Details
wrong colored id's (44.85 KB, image/png)
2013-07-19 10:47 UTC, Selpi
Details
Wrong coloring (147.13 KB, image/png)
2013-07-19 11:13 UTC, Selpi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Selpi 2013-07-19 10:45:47 UTC
Product Version = NetBeans IDE Dev (Build 201307182300)
Operating System = Linux version 3.8.0-27-generic running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01

I just found that ID's in css files are colored not like other identifiers.

When i tried to recolor them in Tools -> Options -> Fonts & Colors -> Syntax -> Language: Cascading Style Sheets i found out that there is no way to recolor just ID's. 

There is an option to recolor 'identifiers', but ID's are not using this settings but inherit color settings from 'Number' in 'All languages'.

More of it, while writing this report I switched to GTK+ LaF and default 'Netbeans' theme and found out that changing color for 'identifiers' in CSS language section doesn't do anything and completely ignored by editor. The greenish color for selectors is taken from somewhere else and bluish for css properties cannot be changed and also inherited from other element and can't be recolored.

So, looks like coloring of elements should be reviewed to fix all the undercover inheritances and inability to recolor syntax for different LaF's.

Screenshot will be added.
Comment 1 Selpi 2013-07-19 10:45:49 UTC
Created attachment 137434 [details]
IDE log
Comment 2 Selpi 2013-07-19 10:47:03 UTC
Created attachment 137435 [details]
wrong colored id's
Comment 3 Selpi 2013-07-19 11:13:03 UTC
Created attachment 137438 [details]
Wrong coloring

So, that how it looks like. Colors taken from other elements and actial settings just ignored.
Comment 4 Vladimir Riha 2013-07-19 15:10:43 UTC
I don't know what Identifiers mean, but coloring of classes and IDs is defined via "Selectors" which works in GTK.

In Dark Nimbus, color of #id selectors is taken from "hashes" which is I guess wrong (confusing at least)

Thank you for reporting





Product Version: NetBeans IDE Dev (Build 201307182300)
Updates: Updates available
Java: 1.7.0_40-ea; Java HotSpot(TM) Client VM 24.0-b52
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b33
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Marek Fukala 2013-07-23 13:20:19 UTC
fixed along with several other changes in the dark themes.

changeset:   259189:9fff1d67fb63
summary:     playing with the dark themes