Class LookAndFeelBean
java.lang.Object
com.atlassian.jira.config.properties.LookAndFeelBean
Bean mainly used to maintain a version number for all the menu colours. This allows us
to cache this information until it is updated (i.e.:version number is incremented).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
These are the "intended" colours for the Jira Header.static final class
These are the intended colours for the new common Header.static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionReturns the URL for the dark theme logo.getDefaultBackedString
(String key, String defaultValue) Performs a lookup on the application properties for the specified key.static LookAndFeelBean
Deprecated.since 7.9.0.static LookAndFeelBean
getInstance
(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider) Deprecated.since 7.10.0.static LookAndFeelBean
getInstance
(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider, LogoProvider logoProvider) Returns the URL for the light theme logo.Deprecated.since 8.15.Optional<com.atlassian.theme.api.ThemeColorMode>
Returns the theme, for which logo is customized, only if logo is configured only for that theme.protected String
getValue
(com.atlassian.jira.config.properties.LookAndFeelBean.LnF config) boolean
Deprecated.in Jira 6.0 -- the common header is always enabled.void
setFaviconHiResUrl
(String faviconUrl) void
setFaviconUrl
(String faviconUrl) void
setGadgetChromeColor
(String id, String gadgetChromeColor) void
setHeroButtonBaseBGColour
(String heroButtonBaseBGColour) void
setHeroButtonTextColour
(String heroButtonTextColour) void
setLogoDarkUrl
(String logoUrl) Sets the logo for the dark theme.void
setLogoHeight
(String logoHeight) void
setLogoUrl
(String logoUrl) Sets the logo for the light theme.void
setLogoWidth
(String logoWidth) void
setMenuBackgroundColour
(String menuBackgroundColour) void
setMenuSeparatorColour
(String menuSeparatorColour) void
setMenuTxtColour
(String menuTxtColour) void
setTextActiveLinkColour
(String textActiveLinkColour) void
setTextHeadingColour
(String textHeadingColour) void
setTextLinkColour
(String textLinkColour) void
setTopBackgroundColour
(String topBackgroundColour) void
setTopHighlightColor
(String newValue) void
setTopSeparatorBackgroundColor
(String newValue) void
setTopTextHighlightColor
(String newValue) void
setTopTxtColour
(String topTxtColour) Deprecated.Since v7.0Deprecated.since 8.15.
-
Method Details
-
getInstance
Deprecated. -
getInstance
@Deprecated public static LookAndFeelBean getInstance(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider) Deprecated. -
getInstance
public static LookAndFeelBean getInstance(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider, LogoProvider logoProvider) -
isCommonHeader
Deprecated.in Jira 6.0 -- the common header is always enabled.- Returns:
- true
-
stripHash
Deprecated.Since v7.0- Parameters:
colour
-- Returns:
-
updateSettingsHash
Deprecated.since 8.15. UseUiSettingsStateManager.invalidateStateHash()
. -
getSettingsHash
Deprecated.since 8.15. UseUiSettingsStateManager.getStateHash()
. -
getConfigurationState
-
getLogoUrl
Returns the URL for the light theme logo. If it is default and logo for the dark theme is customized, this returns the dark theme logo. -
getDarkLogoUrl
Returns the URL for the dark theme logo. If it is default and logo for the light theme is customized, this returns the light theme logo. -
getSingleThemeLogo
Returns the theme, for which logo is customized, only if logo is configured only for that theme. If no theme has customized logo, returns empty Optional. If both themes have customized logo, returns empty Optional. -
setLogoUrl
Sets the logo for the light theme.- Parameters:
logoUrl
- - path to the logo image resource- See Also:
-
setLogoDarkUrl
Sets the logo for the dark theme.- Parameters:
logoUrl
- - path to the logo image resource- See Also:
-
getAbsoluteLogoUrl
-
getLogoWidth
-
setLogoWidth
-
getLogoPixelWidth
-
getLogoHeight
-
setLogoHeight
-
getLogoPixelHeight
-
getFaviconUrl
-
setFaviconUrl
-
getFaviconWidth
-
getFaviconHeight
-
getFaviconHiResUrl
-
setFaviconHiResUrl
-
getFaviconHiResWidth
-
getFaviconHiResHeight
-
getTopBackgroundColour
-
setTopBackgroundColour
-
getTopTxtColour
-
setTopTxtColour
-
getTopHighlightColor
-
setTopHighlightColor
-
getValue
@Nullable protected String getValue(@Nonnull com.atlassian.jira.config.properties.LookAndFeelBean.LnF config) -
getTopTextHighlightColor
-
setTopTextHighlightColor
-
getTopSeparatorBackgroundColor
-
setTopSeparatorBackgroundColor
-
getMenuTxtColour
-
setMenuTxtColour
-
getMenuBackgroundColour
-
setMenuBackgroundColour
-
getMenuSeparatorColour
-
setMenuSeparatorColour
-
getTextHeadingColour
-
setTextHeadingColour
-
getTextLinkColour
-
setTextLinkColour
-
getTextActiveLinkColour
-
setTextActiveLinkColour
-
getHeroButtonTextColour
-
setHeroButtonTextColour
-
getHeroButtonBaseBGColour
-
setHeroButtonBaseBGColour
-
getGadgetChromeColor
-
setGadgetChromeColor
-
getApplicationID
-
getDefaultBackedString
Performs a lookup on the application properties for the specified key. If the key returns a null value, returns the default value specified. This would happen if no value exists in the database AND no value exists in the jira-application.properties file.- Parameters:
key
- the Application Properties key to look updefaultValue
- the value to return if the key yields null- Returns:
- the value of the key in the Application Properties, or the default value specified
-
getDefaultBackedString
-