Skip to content

Commit b169690

Browse files
authored
Add support for ACE Editor (#319)
1 parent 202852b commit b169690

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/main/java/io/jenkins/plugins/darktheme/DarkThemeManagerFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class DarkThemeManagerFactory extends ThemeManagerFactory {
1212

1313
public static final String THEME_CSS = "theme.css";
1414
public static final String THEME_URL_NAME = "theme-dark";
15+
public static final String ACE_EDITOR_THEME = "tomorrow_night";
1516
public static final String PRISM_THEME = "tomorrow";
1617

1718
@DataBoundConstructor
@@ -22,6 +23,7 @@ public DarkThemeManagerFactory() {
2223
public Theme getTheme() {
2324
return Theme.builder()
2425
.withCssUrl(getCssUrl())
26+
.withProperty("ace-editor", "theme", ACE_EDITOR_THEME)
2527
.withProperty("prism-api", "theme", PRISM_THEME)
2628
.build();
2729
}

src/main/java/io/jenkins/plugins/darktheme/DarkThemeSystemManagerFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public DarkThemeSystemManagerFactory() {
1919
@Override
2020
public Theme getTheme() {
2121
return Theme.builder()
22+
.withProperty("ace-editor", "theme", ACE_EDITOR_THEME)
2223
.withProperty("prism-api", "theme", PRISM_THEME)
2324
.build();
2425
}

0 commit comments

Comments
 (0)