Jump to: navigation, search

Orion/How Tos/Editor Theme

< Orion‎ | How Tos
Revision as of 18:46, 11 February 2014 by Adrian.aichner.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 (className, styleSheet) - 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