Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] Orion Theme Builder

Hi Anton,

First of all, let me share this experience with you : Dojo + Curl.js = HELL. Really, It was a tough day today but fortunately I have done a lot of things and I have integrated your tool into my application but at a little extent. 

You can try it here, Open a css file with Theme Builder (Open With Button) : 


Here is the source code 


And after having launched your tool , you will read this message : UNDER CONSTRUCTION which means we have some more work to do together

First of all :  Using ThemeData, how one can parse the content of a css theme file? And I know now where the Orion themes are located... 


De : Anton McConville <Anton.McConville@xxxxxxxxxx>
À : lamine <laminba2003@xxxxxxxx>; Orion developer discussions <orion-dev@xxxxxxxxxxx>
Envoyé le : Jeudi 15 novembre 2012 17h34
Objet : Re: [orion-dev] Orion Theming

Hi Lamine,

Thanks for the themes. Have you tried the theme builder in Orion's settings? Also you can take a look at this blog post:



lamine ---11/14/2012 05:51:00 PM---Hi Selenio,

lamine <laminba2003@xxxxxxxx>

Silenio Quarti/Ottawa/IBM@IBMCA, "orion-dev@xxxxxxxxxxx" <orion-dev@xxxxxxxxxxx>

11/14/2012 05:51 PM

[orion-dev] Orion Theming

Hi Selenio,

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.


After you can see how things are working by looking at the bottom of this file . You will see these settings :



and the default configuration is :




The css files are loaded on demand via the injected loadStyle method :


if(key=='themeClass') Orion.loadStyle(value+".css");
var options={};


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.
textview                         -> 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:

.orion {
color: black;

.orion .textview {
background-color: #ffd400;


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:

textview.setOptions({themeClass: "orion"});


orion-dev mailing list

Back to the top