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.
Currently a read only file is indicated in the tab by a gray font, which is not too easy to spot. Since read-only file obviously can not be modified, the same indication for all code in read-only file should be used as is for example for generated (read-only) code in jFrames. In other words, read-only files should have gray background for all code when opened, to immediately communicate that they cannot be edited.
How should the gray background be positioned to other highlights that also set background colors, eg current line, text selection, text search, mark occurences, etc. What shade of gray it should be? The same as for the guarded sections? Thanks
Created attachment 91585 [details] generated code sections ... Please use the same appearance & highlighting as in generated code sections ..
http://hg.netbeans.org/jet-main/rev/e6d34a0b43db
Integrated into 'main-golden', will be available in build *200912280201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e6d34a0b43db User: Vita Stejskal <vstejskal@netbeans.org> Log: #172845: display gray background for read only files
Hello Ondrej, Could you, please, think over this decision once more based on daily bits. Looks quite strange and hard for eyes... Italic in header was not annoying at all, but blinking backgrounds of files is too colorful. Now any navigation into library class (like String) changes background. In our (C++) area any jump into system header file change background as well. I understand that "same" approach for read-only blocks is a good idea, but generated (read-only) code in jFrames is collapsed by default and all other background is consistent with other editors, while now editors are blinking and it's very hard for eyes
see 180826
Closing as this should work fine AFAIK.