Skip to content

Commit

Permalink
Add Entra ID theme (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Dec 19, 2023
1 parent 0b7681c commit 1753a3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class DarkThemeManagerFactory extends ThemeManagerFactory {
public static final String ACE_EDITOR_THEME = "tomorrow_night";
public static final String PRISM_THEME = "tomorrow";
public static final String BOOTSTRAP_THEME = "dark";
public static final String ENTRA_ID_THEME = "dark";

@DataBoundConstructor
public DarkThemeManagerFactory() {
Expand All @@ -25,6 +26,7 @@ public Theme getTheme() {
return Theme.builder()
.withCssUrl(getCssUrl())
.withProperty("ace-editor", "theme", ACE_EDITOR_THEME)
.withProperty("entra-id", "theme", ENTRA_ID_THEME)

Check warning on line 29 in src/main/java/io/jenkins/plugins/darktheme/DarkThemeManagerFactory.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 29 is not covered by tests
.withProperty("prism-api", "theme", PRISM_THEME)
.withProperty("bootstrap", "theme", BOOTSTRAP_THEME)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public Theme getTheme() {
return Theme.builder()
.respectSystemAppearance()
.withProperty("ace-editor", "theme-dark", ACE_EDITOR_THEME)
.withProperty("entra-id", "theme", ENTRA_ID_THEME)

Check warning on line 24 in src/main/java/io/jenkins/plugins/darktheme/DarkThemeSystemManagerFactory.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 24 is not covered by tests
.withProperty("prism-api", "theme-dark", PRISM_THEME)
.withProperty("bootstrap", "theme-dark", BOOTSTRAP_THEME)
.build();
Expand Down

0 comments on commit 1753a3e

Please sign in to comment.