Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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

< Orion‎ | How Tos
(Add Category Orion)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
TextTheme is at the centre of the new theming API. The main functions available are:
 
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
+
* <code>setThemeClass (className, styleSheet)</code> - takes a className and a ThemeStyleSheet which has one property: an href to the Stylesheet
* getThemeClass - returns the theme classname.
+
* <code>getThemeClass ()</code> - returns the theme classname.
* onThemeChanged - sends out an event when the theme changes
+
* <code>onThemeChanged </code> - sends out an event when the theme changes
 +
 
 +
[[Category:Orion]]

Latest revision as of 19:46, 11 February 2014

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

Copyright © Eclipse Foundation, Inc. All Rights Reserved.