Difference between revisions of "Orion/How Tos/Editor Theme"

From Eclipsepedia

< Orion‎ | How Tos
Jump to: navigation, search
(New page: New theming support was introduced for the editor as part of the 3.0 release. This wiki is meant to provide an overview of how to make use of the new features.)
 
Line 1: Line 1:
 
New theming support was introduced for the editor as part of the 3.0 release. This wiki is meant to provide an overview of how to make use of the new features.
 
New theming support was introduced for the editor as part of the 3.0 release. This wiki is meant to provide an overview of how to make use of the new features.
 +
 +
== Theming Overview ==
 +
 +
TextTheme is at the centre of the new theming API. The main functions available are:
 +
 +
* setThemeClass - takes a className and a themeStyleSheet which has one property: an href to the Stylesheet
 +
* getThemeClass - returns the theme classname.
 +
* onThemeChanged - sends out an event when the theme changes

Revision as of 17:47, 8 March 2013

New theming support was introduced for the editor as part of the 3.0 release. This wiki is meant to provide an overview of how to make use of the new features.

Theming Overview

TextTheme is at the centre of the new theming API. The main functions available are:

  • setThemeClass - takes a className and a themeStyleSheet which has one property: an href to the Stylesheet
  • getThemeClass - returns the theme classname.
  • onThemeChanged - sends out an event when the theme changes