Interface PrimaryTheme<T extends PrimaryTheme<T>>
- Type Parameters:
T- The type of the dynamic theme.
- All Superinterfaces:
BaseTheme<T>
- All Known Subinterfaces:
DynamicColor<T>
- All Known Implementing Classes:
AppTheme,AppWidgetTheme
A
BaseTheme to implement the type theme.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the primary color used by this theme.intgetPrimaryColor(boolean resolve) Returns the primary color used by this theme.intgetPrimaryColor(boolean resolve, boolean inverse) Returns the primary color used by this theme.intReturns the dark primary color used by this theme.intgetPrimaryColorDark(boolean resolve) Returns the dark primary color used by this theme.intgetPrimaryColorDark(boolean resolve, boolean inverse) Returns the dark primary color used by this theme.intReturns the primary tint color used by this theme.intgetTintPrimaryColor(boolean resolve) Returns the primary tint color used by this theme.intgetTintPrimaryColor(boolean resolve, boolean inverse) Returns the primary tint color used by this theme.intReturns the dark primary tint color used by this theme.intgetTintPrimaryColorDark(boolean resolve) Returns the dark primary tint color used by this theme.intgetTintPrimaryColorDark(boolean resolve, boolean inverse) Returns the dark primary tint color used by this theme.setPrimaryColor(int primaryColor) Set the primary color used by this theme.setPrimaryColor(int primaryColor, boolean generateTint) Set the primary color used by this theme.setPrimaryColorDark(int primaryColorDark) Set the dark primary color used by this theme.setPrimaryColorDark(int primaryColorDark, boolean generateTint) Set the dark primary color used by this theme.setTintPrimaryColor(int tintPrimaryColor) Set the primary tint color used by this theme.setTintPrimaryColorDark(int tintPrimaryColorDark) Set the dark primary tint color used by this theme.
-
Method Details
-
getPrimaryColor
Returns the primary color used by this theme.- Parameters:
resolve-trueto resolve the auto color.inverse-trueto resolve the inverse color.- Returns:
- The primary color used by this theme.
-
getPrimaryColor
Returns the primary color used by this theme.- Parameters:
resolve-trueto resolve the auto color.- Returns:
- The primary color used by this theme.
-
getPrimaryColor
Returns the primary color used by this theme.- Returns:
- The primary color used by this theme.
-
setPrimaryColor
Set the primary color used by this theme.- Parameters:
primaryColor- The primary color to be set.generateTint-trueto automatically generate the tint color also.- Returns:
- The
PrimaryThemeobject to allow for chaining of calls to set methods. - See Also:
-
setPrimaryColor
Set the primary color used by this theme.It will automatically generate the tint color also.
- Parameters:
primaryColor- The primary color to be set.- Returns:
- The
PrimaryThemeobject to allow for chaining of calls to set methods. - See Also:
-
getPrimaryColorDark
Returns the dark primary color used by this theme.- Parameters:
resolve-trueto resolve the auto color.inverse-trueto resolve the inverse color.- Returns:
- The dark primary color used by this theme.
-
getPrimaryColorDark
Returns the dark primary color used by this theme.- Parameters:
resolve-trueto resolve the auto color.- Returns:
- The dark primary color used by this theme.
-
getPrimaryColorDark
Returns the dark primary color used by this theme.- Returns:
- The dark primary color used by this theme.
-
setPrimaryColorDark
Set the dark primary color used by this theme.- Parameters:
primaryColorDark- The dark primary color to be set.generateTint-trueto automatically generate the tint color also.- Returns:
- The
PrimaryThemeobject to allow for chaining of calls to set methods. - See Also:
-
setPrimaryColorDark
Set the dark primary color used by this theme.It will automatically generate the tint color also.
- Parameters:
primaryColorDark- The dark primary color to be set.- Returns:
- The
PrimaryThemeobject to allow for chaining of calls to set methods. - See Also:
-
getTintPrimaryColor
Returns the primary tint color used by this theme.- Parameters:
resolve-trueto resolve the auto color.inverse-trueto resolve the inverse color.- Returns:
- The primary tint color used by this theme.
-
getTintPrimaryColor
Returns the primary tint color used by this theme.- Parameters:
resolve-trueto resolve the auto color.- Returns:
- The primary tint color used by this theme.
-
getTintPrimaryColor
Returns the primary tint color used by this theme.- Returns:
- The primary tint color used by this theme.
-
setTintPrimaryColor
Set the primary tint color used by this theme.- Parameters:
tintPrimaryColor- The primary tint color to be set.- Returns:
- The
PrimaryThemeobject to allow for chaining of calls to set methods.
-
getTintPrimaryColorDark
Returns the dark primary tint color used by this theme.- Parameters:
resolve-trueto resolve the auto color.inverse-trueto resolve the inverse color.- Returns:
- The dark primary tint color used by this theme.
-
getTintPrimaryColorDark
Returns the dark primary tint color used by this theme.- Parameters:
resolve-trueto resolve the auto color.- Returns:
- The dark primary tint color used by this theme.
-
getTintPrimaryColorDark
Returns the dark primary tint color used by this theme.- Returns:
- The dark primary tint color used by this theme.
-
setTintPrimaryColorDark
Set the dark primary tint color used by this theme.- Parameters:
tintPrimaryColorDark- The dark primary tint color to be set.- Returns:
- The
PrimaryThemeobject to allow for chaining of calls to set methods.
-