Themes

Identifier:
org.eclipse.e4.ui.css.swt.theme

Since:
0.9

Description:
This extension point provides the possibility to define themes and/or contribute stylesheets and resources to already defined themes

Configuration Markup:

<!ELEMENT extension (stylesheet* , theme* , themeAssociation*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT stylesheet (themeid* , osgiresourcelocator*)>

<!ATTLIST stylesheet

uri CDATA #REQUIRED

os  CDATA #IMPLIED

ws  CDATA #IMPLIED>

Contribute a stylehsheet to themes



<!ELEMENT theme EMPTY>

<!ATTLIST theme

id                CDATA #REQUIRED

label             CDATA #REQUIRED

basestylesheeturi CDATA #REQUIRED

os                CDATA #IMPLIED

ws                CDATA #IMPLIED

os_version        CDATA #IMPLIED>


<!ELEMENT themeid EMPTY>

<!ATTLIST themeid

refid IDREF #IMPLIED>


<!ELEMENT osgiresourcelocator EMPTY>

<!ATTLIST osgiresourcelocator

uri CDATA #REQUIRED>


<!ELEMENT themeAssociation EMPTY>

<!ATTLIST themeAssociation

themeId        IDREF #REQUIRED

colorAndFontId IDREF #REQUIRED

os_version     IDREF #IMPLIED>


Examples:

A theme which only applies on Win32/WinXP:


<theme
  basestylesheeturi="css/e4_default_winxp_blu.css"
  id="org.eclipse.e4.ui.css.theme.e4_default"
  label="e4DefaultWinXPBlue"
  os="win32"
  ws="winxp">
</theme>

A stylesheet contributed to all Systems:


<stylesheet
  uri="css/default.css">
</stylesheet>

The CSS theme and the legacy Colors and Fonts association:


<themeAssociation
 themeId="org.eclipse.e4.ui.css.theme.e4_classic"
 colorAndFontId="org.eclipse.ui.defaultTheme"> 
</themeassociation>


Copyright (c) 2010 Tom Schindl and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0