Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355463

Summary: [editor] Ruler columns are not skinnable
Product: [ECD] Orion Reporter: Markus Albrecht <ma>
Component: EditorAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, mamacdon
Version: 0.2   
Target Milestone: 0.3 M2   
Hardware: Other   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=347493
Whiteboard:

Description Markus Albrecht CLA 2011-08-23 03:20:22 EDT
Build Identifier: Version 0.3M1

With the syntax highlighting possibilities, the editor is already skinnable by applying different Stylesheets.
See also Bug <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=334212">334212</a>.

Although the ruler columns (line number, annotation, overview) are not skinnable, since there are no CSS-classes used. The styles are set directly from javascript code, where e.g. the background color is hardcoded to white. See file bundles/org.eclipse.orion.client.editor/web/orion/editor/editorFeatures.js and search for "#ffffff".

I suggest to use CSS classes for the ruler columns, where own styles can be defined via a .css file.

Reproducible: Always
Comment 1 Felipe Heidrich CLA 2011-08-23 16:21:17 EDT
Note the rulers (in textview land) supports this already, see org.eclipse.orion.client.editor/web/examples/textview/demo.js
Comment 2 Markus Albrecht CLA 2011-08-24 04:53:32 EDT
Yes, you're right! The issue is resolved for me.
Comment 3 Mark Macdonald CLA 2011-08-30 17:39:17 EDT
Reopening, since we should use class names on the editor's rulers rather than hardcoded styles. This will let you customize the ruler styles by passing an additional stylesheet in the editor's textViewFactory.

Comment 1 points out that you can achieve the same effect by creating the rulers yourself, but that requires overriding all the editor's *rulerFactories. I think the CSS approach will be easier.