Community
Participate
Working Groups
If you change the color scheme of the editor to something like dark background, light gray foreground, the bars color can not be changed. I mean the bar to the right of the linenumbers column in a code editor view, where e.g. folding, annotations and markers are displayed.
Try Window->Preferences->General->Editors->Annotations. Please reopen this bug if this was not what you meant.
Created attachment 62436 [details] Bar with code folding can not be changed Also, changable fore/background of all views and their text would be nice.
see attachement please
See also bug 62712.
This bug makes code folding quite unusable for dark-background themes, and even with folding turned off, it is quite annoying (you still get a 1px white line to the left).
It seems the code for drawing the folding ruler is found in ProjectionRulerColumn's createControl(CompositeRuler, Composite) method. How can preferences be injected into the JFace code?
It would have to be set/configured from outside.
You can e.g. look how it is done for the line number ruler.
(In reply to comment #8) > You can e.g. look how it is done for the line number ruler. Oh yeah, why didn't I think of that...? From my analysis, LineNumberRulerColumn has a handy-dandy setBackground(Color) method. ProjectionRulerColumn doesn't. ProjectionRulerColumn is also package-private. I think ProjectionRulerColumn would have to become public API or new API would need to be added to ProjectionSupport for altering colours (which would then delegate the call to ProjectionRulerColumn).
I think we should just fix the 99% case for now and set the projection ruler bg color when it is created. In ProjectionRulerColumn.createControl(..), replace Color background= display.getSystemColor(SWT.COLOR_LIST_BACKGROUND); with Color background= getCachedTextViewer().getTextWidget().getBackground(); That doesn't update the color when the preference is changed, but it at least shows the correct color for new editors. (In reply to comment #5) > (you still get a 1px white line to the left). The separator between rulers an the text area is not white. It uses the operating system's widget background color (same as the annotation ruler backgrounds at the left and right of the editor). To change this, you have to change the OS theme.
>I think we should just fix the 99% case This is bug 62712 (and I just fixed it in HEAD).
> (In reply to comment #5) > > (you still get a 1px white line to the left). > > The separator between rulers an the text area is not white. It uses the > operating system's widget background color (same as the annotation ruler > backgrounds at the left and right of the editor). To change this, you have to > change the OS theme. This is not an option, since it'd make all other widgets in the OS unusable =). I have added a separate bug report for this, bug 276843. When that bug and 276719 are fixed, dark themes will actually be usable. Many thanks!
*** Bug 276843 has been marked as a duplicate of this bug. ***
4.7.3a and the folding bar is still the wrong color.