[458437] Dark theme support in the JSP editor
diff --git a/bundles/org.eclipse.jst.jsp.ui/build.properties b/bundles/org.eclipse.jst.jsp.ui/build.properties index a5bbc9e..194ff17 100644 --- a/bundles/org.eclipse.jst.jsp.ui/build.properties +++ b/bundles/org.eclipse.jst.jsp.ui/build.properties
@@ -15,7 +15,8 @@ META-INF/,\ icons/,\ plugin.properties,\ - about.html + about.html,\ + css/ bin.excludes = @dot/**,\ temp.folder/** additional.bundles = org.eclipse.jdt.core.manipulation
diff --git a/bundles/org.eclipse.jst.jsp.ui/css/dark/preferencestyle.css b/bundles/org.eclipse.jst.jsp.ui/css/dark/preferencestyle.css new file mode 100644 index 0000000..f0a9294 --- /dev/null +++ b/bundles/org.eclipse.jst.jsp.ui/css/dark/preferencestyle.css
@@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2015 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ + +/* ####################### JSP syntax highlighting ###################### */ + +IEclipsePreferences#org-eclipse-jst-jsp-ui { + preferences: + 'SCRIPT_AREA_BORDER=#fbd153 | null | false | false | false | false' + 'tagAttributeEquals=#52ca11 | null | false | false | false | false' + 'tagAttributeName=#a7ec21 | null | false | false | false | false' + 'tagAttributeValue=#17c6a3 | null | false | false | false | false' + 'tagName=#03a8d8 | null | true | false | false | false' + 'tagBorder=#0080ff | null | false | false | false | false' +}
diff --git a/bundles/org.eclipse.jst.jsp.ui/plugin.xml b/bundles/org.eclipse.jst.jsp.ui/plugin.xml index b2e8a7b..d3e2c33 100644 --- a/bundles/org.eclipse.jst.jsp.ui/plugin.xml +++ b/bundles/org.eclipse.jst.jsp.ui/plugin.xml
@@ -1465,4 +1465,11 @@ id="org.eclipse.jst.jsp.ui.views.contentoutline.XMLCommentFilter"> </filter> </extension> + <!-- dark theme defaults --> + <extension + point="org.eclipse.e4.ui.css.swt.theme"> + <stylesheet uri="css/dark/preferencestyle.css"> + <themeid refid="org.eclipse.e4.ui.css.theme.e4_dark"></themeid> + </stylesheet> + </extension> </plugin>