Orion has a nice Settings page with
more canned themes. Check it out.
Please open a bugzilla if you would
like to contribute more themes to the orion editor. Thanks!
11/14/2012 05:49 PM
Using your documentation, I have successfully created several themes for
the Eclipse Orion Editor and they are derived from the CodeMirror ones.
Follow the link below, open the editor.js file, click on the config button
and play around the themeClass option.
The css files are loaded on demand via the injected loadStyle method :
You can perform a right click on the css folder + a click on the download
item to get a zip file of the themes. And also, one thing that might be
interesting would be to have an Orion web theme generator.
Currently, the way we expect the font, color, background and a few other
properties to change is by providing a style sheet and by setting the themeClass
option of the text view. Sorry, the documentation in this area is not very
clear yet. The basic API (which should not change) are the CSS class
names defined in textview.css These are:
textViewContainer -> the whole editor including rulers
and text area.
-> the scrollable portion of the editor
textviewContent -> the contents of the editor
- text area inside of scrollable area
textviewLeftRuler -> left rulers area
textviewRightRuler -> right rulers area
Take a look at "examples/textview/themes/orion.css" for an example:
This style sheet specifies the ".orion .textview" selector which
overwrites the background color of the scrollable area of the editor. The
style sheet is used by setting the themeClass option as follows: