Class DarkThemeManagerFactory

java.lang.Object
hudson.model.AbstractDescribableImpl<io.jenkins.plugins.thememanager.ThemeManagerFactory>
io.jenkins.plugins.thememanager.ThemeManagerFactory
io.jenkins.plugins.darktheme.DarkThemeManagerFactory
All Implemented Interfaces:
ExtensionPoint, Describable<io.jenkins.plugins.thememanager.ThemeManagerFactory>

public class DarkThemeManagerFactory extends io.jenkins.plugins.thememanager.ThemeManagerFactory
  • Field Details

  • Constructor Details

    • DarkThemeManagerFactory

      @DataBoundConstructor public DarkThemeManagerFactory()
  • Method Details

    • getCssUrl

      public String getCssUrl()
      Returns a context-path-relative CSS URL so the theme works regardless of which host/port the user accesses Jenkins through (e.g. bypassing a reverse proxy). The parent implementation uses Jenkins.get().getRootUrl() which always returns the globally configured URL.
      Overrides:
      getCssUrl in class io.jenkins.plugins.thememanager.ThemeManagerFactory
    • getTheme

      public io.jenkins.plugins.thememanager.Theme getTheme()
      Specified by:
      getTheme in class io.jenkins.plugins.thememanager.ThemeManagerFactory