Skip to content

Commit 1753a3e

Browse files
authored
Add Entra ID theme (#439)
1 parent 0b7681c commit 1753a3e

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
@@ -15,6 +15,7 @@ public class DarkThemeManagerFactory extends ThemeManagerFactory {
1515
public static final String ACE_EDITOR_THEME = "tomorrow_night";
1616
public static final String PRISM_THEME = "tomorrow";
1717
public static final String BOOTSTRAP_THEME = "dark";
18+
public static final String ENTRA_ID_THEME = "dark";
1819

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public Theme getTheme() {
2121
return Theme.builder()
2222
.respectSystemAppearance()
2323
.withProperty("ace-editor", "theme-dark", ACE_EDITOR_THEME)
24+
.withProperty("entra-id", "theme", ENTRA_ID_THEME)
2425
.withProperty("prism-api", "theme-dark", PRISM_THEME)
2526
.withProperty("bootstrap", "theme-dark", BOOTSTRAP_THEME)
2627
.build();

0 commit comments

Comments
 (0)