-
- All Implemented Interfaces:
public final class ThemeProviderProvides Theme configuration for button, icons, background, text
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classThemeProvider.Companion
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ThemeProvider(ConfigurationRepository configurationRepository, ResourcesHelper resourcesHelper)
-
Method Summary
-
-
Constructor Detail
-
ThemeProvider
ThemeProvider(ConfigurationRepository configurationRepository, ResourcesHelper resourcesHelper)
-
-
Method Detail
-
getThemeColor
final Integer getThemeColor()
The Theme color.
-
getBackgroundColor
final Integer getBackgroundColor()
The Background color (mobile only).
-
getPrimaryTextColor
final Integer getPrimaryTextColor()
The primary text color from opposite background color (mobile only).
-
getSecondaryTextColor
final Integer getSecondaryTextColor()
The secondary text color from primary text color (mobile only).
-
isDarkTheme
final Boolean isDarkTheme()
Whether theme is Dark or Light from primary text color (mobile only).
-
getLogoColor
final Integer getLogoColor()
Whether logo color should be updated because of background color (mobile only).
-
getHighlightBackground
final GradientDrawable getHighlightBackground()
-
getHighlightTextColor
final Integer getHighlightTextColor()
-
getRegularBackground
final GradientDrawable getRegularBackground()
-
getRegularTextColor
final Integer getRegularTextColor()
-
isLinkColorSet
final Boolean isLinkColorSet()
-
getLinkColor
final Integer getLinkColor()
-
getNoticePrimaryButtonTheme
final ButtonTheme getNoticePrimaryButtonTheme()
-
getNoticeSecondaryButtonTheme
final ButtonTheme getNoticeSecondaryButtonTheme()
-
getNoticeNoneButtonTheme
final ButtonTheme getNoticeNoneButtonTheme()
-
getNoticeDescriptionAlignment
final AppConfiguration.Theme.ContentThemeConfig.Alignment getNoticeDescriptionAlignment()
-
getNoticeDescriptionFontFamily
final Typeface getNoticeDescriptionFontFamily()
-
getNoticeDescriptionTextColor
final Integer getNoticeDescriptionTextColor()
-
getNoticeDescriptionTextSize
final Float getNoticeDescriptionTextSize()
-
getNoticeTitleAlignment
final AppConfiguration.Theme.ContentThemeConfig.Alignment getNoticeTitleAlignment()
-
getNoticeTitleFontFamily
final Typeface getNoticeTitleFontFamily()
-
getNoticeTitleTextColor
final Integer getNoticeTitleTextColor()
-
getNoticeTitleTextSize
final Float getNoticeTitleTextSize()
-
getPreferencesPrimaryButtonTheme
final ButtonTheme getPreferencesPrimaryButtonTheme()
-
getPreferencesSecondaryButtonTheme
final ButtonTheme getPreferencesSecondaryButtonTheme()
-
getPreferencesNoneButtonTheme
final ButtonTheme getPreferencesNoneButtonTheme()
-
getPreferencesDescriptionAlignment
final AppConfiguration.Theme.ContentThemeConfig.Alignment getPreferencesDescriptionAlignment()
-
getPreferencesDescriptionTextColor
final Integer getPreferencesDescriptionTextColor()
-
getPreferencesDescriptionTextSize
final Float getPreferencesDescriptionTextSize()
-
getPreferencesTitleAlignment
final AppConfiguration.Theme.ContentThemeConfig.Alignment getPreferencesTitleAlignment()
-
getPreferencesTitleFontFamily
final Typeface getPreferencesTitleFontFamily()
-
getPreferencesTitleTextColor
final Integer getPreferencesTitleTextColor()
-
getPreferencesTitleTextSize
final Float getPreferencesTitleTextSize()
-
getPreferencesTitlePrimaryTextTheme
final TextTheme getPreferencesTitlePrimaryTextTheme()
-
getPreferencesTitleSecondaryTextTheme
final TextTheme getPreferencesTitleSecondaryTextTheme()
-
getPreferencesDescriptionPrimaryTextTheme
final TextTheme getPreferencesDescriptionPrimaryTextTheme()
-
getPreferencesDescriptionSecondaryTextTheme
final TextTheme getPreferencesDescriptionSecondaryTextTheme()
-
getPreferencesDescriptionTypeface
final Typeface getPreferencesDescriptionTypeface()
-
isFullscreen
final Boolean isFullscreen()
Fullscreen status
-
isNoticeStickyButtons
final Boolean isNoticeStickyButtons()
Sticky button status
-
getNoticeButtonTheme
final ButtonTheme getNoticeButtonTheme(AppConfiguration.Theme.ButtonFormat format)
Provide a theme for notice buttons based on the format passed.
- Parameters:
format- the format type as AppConfiguration.Theme.ButtonFormat
-
-
-
-