Package io.didomi.sdk.config.theme
Class ThemeProvider
-
- All Implemented Interfaces:
public final class ThemeProviderProvides Theme configuration for button, icons, background, text
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerbackgroundColorprivate final IntegersecondaryDividerColorprivate final IntegerthemeColorprivate final IntegerprimaryTextColorprivate final IntegersecondaryTextColorprivate final IntegerlogoColorprivate final IntegerlinkColorprivate final GradientDrawablehighlightBackgroundprivate final IntegerhighlightTextColorprivate final GradientDrawableregularBackgroundprivate final IntegerregularTextColorprivate final GradientDrawablesecondaryBackgroundprivate final BooleanisDarkThemeprivate final BooleanisFullscreenprivate final BooleanisLinkColorSetprivate final NoticeThemenoticeprivate final PreferencesThemepreferences
-
Constructor Summary
Constructors Constructor Description ThemeProvider(ConfigurationRepository configurationRepository, ResourcesHelper resourcesHelper)
-
Method Summary
Modifier and Type Method Description final IntegergetBackgroundColor()The Background color (mobile only). final IntegergetSecondaryDividerColor()Color for Secondary Dividers (mobile only). final IntegergetThemeColor()The Theme color. final IntegergetPrimaryTextColor()The primary text color from opposite background color (mobile only). final IntegergetSecondaryTextColor()The secondary text color from primary text color (mobile only). final IntegergetLogoColor()Didomi brand logo color, adapted to background color (mobile only). final IntegergetLinkColor()final GradientDrawablegetHighlightBackground()final IntegergetHighlightTextColor()final GradientDrawablegetRegularBackground()final IntegergetRegularTextColor()final GradientDrawablegetSecondaryBackground()final BooleanisDarkTheme()Whether theme is Dark or Light from primary text color (mobile only). final BooleanisFullscreen()Fullscreen status final BooleanisLinkColorSet()Link color status final NoticeThemegetNotice()Notice theme final PreferencesThemegetPreferences()Preferences theme -
-
Constructor Detail
-
ThemeProvider
ThemeProvider(ConfigurationRepository configurationRepository, ResourcesHelper resourcesHelper)
-
-
Method Detail
-
getBackgroundColor
final Integer getBackgroundColor()
The Background color (mobile only).
-
getSecondaryDividerColor
final Integer getSecondaryDividerColor()
Color for Secondary Dividers (mobile only).
-
getThemeColor
final Integer getThemeColor()
The Theme color.
-
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).
-
getLogoColor
final Integer getLogoColor()
Didomi brand logo color, adapted to background color (mobile only).
-
getLinkColor
final Integer getLinkColor()
-
getHighlightBackground
final GradientDrawable getHighlightBackground()
-
getHighlightTextColor
final Integer getHighlightTextColor()
-
getRegularBackground
final GradientDrawable getRegularBackground()
-
getRegularTextColor
final Integer getRegularTextColor()
-
getSecondaryBackground
final GradientDrawable getSecondaryBackground()
-
isDarkTheme
final Boolean isDarkTheme()
Whether theme is Dark or Light from primary text color (mobile only).
-
isFullscreen
final Boolean isFullscreen()
Fullscreen status
-
isLinkColorSet
final Boolean isLinkColorSet()
Link color status
-
getNotice
final NoticeTheme getNotice()
Notice theme
-
getPreferences
final PreferencesTheme getPreferences()
Preferences theme
-
-
-
-