Skip to content

Commit

Permalink
Merge pull request #422 from PyvesB/dark-theme
Browse files Browse the repository at this point in the history
Add editor preferences for Eclipse's Dark theme
  • Loading branch information
laeubi authored Oct 9, 2020
2 parents 11ae518 + 39c7f36 commit 4d48632
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cucumber.eclipse.editor/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Require-Bundle: org.eclipse.ui;bundle-version="3.5.0",
org.eclipse.equinox.common,
cucumber.eclipse.steps.jdt,
org.eclipse.jdt.ui,
org.eclipse.core.jobs
org.eclipse.core.jobs,
org.eclipse.e4.ui.css.swt.theme
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: cucumber.eclipse.editor,
Expand Down
3 changes: 2 additions & 1 deletion cucumber.eclipse.editor/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ bin.includes = META-INF/,\
.,\
plugin.xml,\
icons/,\
sample/
sample/,\
css/
jars.compile.order = .
10 changes: 10 additions & 0 deletions cucumber.eclipse.editor/css/e4_dark_cucumber.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
IEclipsePreferences#org-eclipse-ui-workbench:cucumber-eclipse-editor {
preferences:
'cucumber.eclipse.editor.presentation.gherkin_text_colour=202,202,202'
'cucumber.eclipse.editor.presentation.gherkin_comment_colour=196,64,64'
'cucumber.eclipse.editor.presentation.gherkin_keyword_colour=196,196,64'
'cucumber.eclipse.editor.presentation.gherkin_numeric_literal_colour=64,196,64'
'cucumber.eclipse.editor.presentation.gherkin_step_colour=64,196,196'
'cucumber.eclipse.editor.presentation.gherkin_string_colour=64,196,64'
'cucumber.eclipse.editor.presentation.gherkin_tag_colour=64,196,255';
}
9 changes: 9 additions & 0 deletions cucumber.eclipse.editor/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -376,4 +376,13 @@
name="Glue Code Options">
</page>
</extension>
<extension
point="org.eclipse.e4.ui.css.swt.theme">
<stylesheet
uri="css/e4_dark_cucumber.css">
<themeid
refid="org.eclipse.e4.ui.css.theme.e4_dark">
</themeid>
</stylesheet>
</extension>
</plugin>

0 comments on commit 4d48632

Please sign in to comment.