Class PreferencesTheme
-
- All Implemented Interfaces:
public final class PreferencesThemeProvides Theme configuration for button, icons, background, text used on Preferences Screens
-
-
Field Summary
Fields Modifier and Type Field Description private final TextThemeprimaryButtonThemeprivate final TextThemesecondaryButtonThemeprivate final TextThemenoneButtonThemeprivate final TextThemelinkButtonThemeprivate final TextThemedescriptionPrimaryTextThemeprivate final TextThemedescriptionSecondaryTextThemeprivate final TextThemetitlePrimaryTextThemeprivate final TextThemetitleSecondaryTextThemeprivate final TextThemevendorCountButtonThemeprivate final AppConfiguration.Theme.ContentThemeConfig.AlignmentdescriptionAlignmentprivate final IntegerdescriptionTextColorprivate final FloatdescriptionTextSizeprivate final TypefacedescriptionTypefaceprivate final AppConfiguration.Theme.ContentThemeConfig.AlignmenttitleAlignmentprivate final TypefacetitleFontFamilyprivate final IntegertitleTextColorprivate final FloattitleTextSize
-
Constructor Summary
Constructors Constructor Description PreferencesTheme(ThemeProvider themeProvider)
-
Method Summary
Modifier and Type Method Description final TextThemegetPrimaryButtonTheme()Theme that should be used on preferences buttons that should look like highlighted (primary) buttons. final TextThemegetSecondaryButtonTheme()Theme that should be used on preferences buttons that should look like regular (secondary) buttons. final TextThemegetNoneButtonTheme()Theme that should be used on preferences buttons with no background color. final TextThemegetLinkButtonTheme()Theme that should be used on preferences buttons with link appearance. final TextThemegetDescriptionPrimaryTextTheme()Theme used in preferences description texts that should use the primary text color. final TextThemegetDescriptionSecondaryTextTheme()Theme used in preferences description texts that should use the secondary text color. final TextThemegetTitlePrimaryTextTheme()Theme used in preferences title texts that should use the primary text color. final TextThemegetTitleSecondaryTextTheme()Theme used in preferences title texts that should use the secondary text color. final TextThemegetVendorCountButtonTheme()Theme that should be used on Purpose's Vendor count buttons. final AppConfiguration.Theme.ContentThemeConfig.AlignmentgetDescriptionAlignment()final IntegergetDescriptionTextColor()final FloatgetDescriptionTextSize()final TypefacegetDescriptionTypeface()Typeface used in preferences description texts. final AppConfiguration.Theme.ContentThemeConfig.AlignmentgetTitleAlignment()final TypefacegetTitleFontFamily()final IntegergetTitleTextColor()final FloatgetTitleTextSize()-
-
Constructor Detail
-
PreferencesTheme
PreferencesTheme(ThemeProvider themeProvider)
-
-
Method Detail
-
getPrimaryButtonTheme
final TextTheme getPrimaryButtonTheme()
Theme that should be used on preferences buttons that should look like highlighted (primary) buttons.
-
getSecondaryButtonTheme
final TextTheme getSecondaryButtonTheme()
Theme that should be used on preferences buttons that should look like regular (secondary) buttons.
-
getNoneButtonTheme
final TextTheme getNoneButtonTheme()
Theme that should be used on preferences buttons with no background color.
-
getLinkButtonTheme
final TextTheme getLinkButtonTheme()
Theme that should be used on preferences buttons with link appearance.
-
getDescriptionPrimaryTextTheme
final TextTheme getDescriptionPrimaryTextTheme()
Theme used in preferences description texts that should use the primary text color.
-
getDescriptionSecondaryTextTheme
final TextTheme getDescriptionSecondaryTextTheme()
Theme used in preferences description texts that should use the secondary text color.
-
getTitlePrimaryTextTheme
final TextTheme getTitlePrimaryTextTheme()
Theme used in preferences title texts that should use the primary text color.
-
getTitleSecondaryTextTheme
final TextTheme getTitleSecondaryTextTheme()
Theme used in preferences title texts that should use the secondary text color.
-
getVendorCountButtonTheme
final TextTheme getVendorCountButtonTheme()
Theme that should be used on Purpose's Vendor count buttons.
-
getDescriptionAlignment
final AppConfiguration.Theme.ContentThemeConfig.Alignment getDescriptionAlignment()
-
getDescriptionTextColor
final Integer getDescriptionTextColor()
-
getDescriptionTextSize
final Float getDescriptionTextSize()
-
getDescriptionTypeface
final Typeface getDescriptionTypeface()
Typeface used in preferences description texts.
-
getTitleAlignment
final AppConfiguration.Theme.ContentThemeConfig.Alignment getTitleAlignment()
-
getTitleFontFamily
final Typeface getTitleFontFamily()
-
getTitleTextColor
final Integer getTitleTextColor()
-
getTitleTextSize
final Float getTitleTextSize()
-
-
-
-