Skip to content

Commit be1e7f1

Browse files
authored
Use Bootstrap dark theme in dark mode (#428)
1 parent 34bae04 commit be1e7f1

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
@@ -14,6 +14,7 @@ public class DarkThemeManagerFactory extends ThemeManagerFactory {
1414
public static final String THEME_URL_NAME = "theme-dark";
1515
public static final String ACE_EDITOR_THEME = "tomorrow_night";
1616
public static final String PRISM_THEME = "tomorrow";
17+
public static final String BOOTSTRAP_THEME = "dark";
1718

1819
@DataBoundConstructor
1920
public DarkThemeManagerFactory() {
@@ -25,6 +26,7 @@ public Theme getTheme() {
2526
.withCssUrl(getCssUrl())
2627
.withProperty("ace-editor", "theme", ACE_EDITOR_THEME)
2728
.withProperty("prism-api", "theme", PRISM_THEME)
29+
.withProperty("bootstrap", "theme", BOOTSTRAP_THEME)
2830
.build();
2931
}
3032

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public Theme getTheme() {
2222
.respectSystemAppearance()
2323
.withProperty("ace-editor", "theme-dark", ACE_EDITOR_THEME)
2424
.withProperty("prism-api", "theme-dark", PRISM_THEME)
25+
.withProperty("bootstrap", "theme-dark", BOOTSTRAP_THEME)
2526
.build();
2627
}
2728

0 commit comments

Comments
 (0)