User forums > General (but related to Code::Blocks)
Gray editor background if file is read only
agentsmith:
--- Quote from: Michael on March 16, 2006, 06:51:31 pm ---Which version of C::B?
--- End quote ---
I tried this on nightly build 15 march, but It's the same in RC2 and in many other nightly builds.
Hmm, but that's interesting, because if what i thought a bug is not a bug, and my workaround (opening and accepting edit options dialog) actually is :), at the moment when it will be repaired it would make read only files totally unreadable... :?
Now I'm truely concerned, because without an option to change background color for r/o files (maybe in code coloring settings) one won't be able to read code.
Some version management systems force all files to be read only, except few ones wchich are being modified (checked out). And from my experience in my environment ratio of checked out (r/w) to checked in(r/o) files is about 1/1000 :shock:
Until now every time whe I loaded a file I had to re-accept editor settings dialog (well, maybe after opening a bunch of files 'cause opening editor options dialog takes a good second ;) ).
But these are only my impressions. Anyway I'm very glad working with C::B.
killerbot:
I agree on the case with version controlled files : the gray makes things less readable. Some other default would be more appropriate.
thomas:
We can of course add a configuration option for that some day. Until now, I haven't even figured how to fix that bug yet, though.
I don't see the issue as so serious, as most version control systems only use write protection if you have to LOCK a file. Locking is something that is best avoided anyway.
Despite the fact that you are not meant to actually edit a write-protected file anyway (that's why it is write protected), it is perfectly readable here as it is. Maybe it's your monitor that has too low contrast?
agentsmith:
It seems that color of the non-editable editor panel is derived from system colors (in winxp color of button/3d object or something like that) and I have tuned it little darker than default. Although approach of using system color is cool with default black text, but it could not be the best way with colored text (as it might blend with with similar colored text like grays in this case).
Readable or not - maybe it's just the matter of taste, even on this thread we have two opinions. I think many people (counting me) find white color to be the best even for read only files (we have also the fancy icon by the side filenames in the project panel that turns to the padlock icon if file is read only, which by the way doesn't work dynamically but it's cool anyway ;) )
If I could suggest something, I would say that letting the user to chose this color would be in my opinion the best choice.
Many thanks for the answers.
Best wishes,
Mike
sethjackson:
Yeah I think letting the user choose is the best way......
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version