Interface AccentTheme<T extends AccentTheme<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 accent theme.-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the accent color used by this theme.int
getAccentColor
(boolean resolve) Returns the accent color used by this theme.int
getAccentColor
(boolean resolve, boolean inverse) Returns the accent color used by this theme.int
Returns the dark accent color used by this theme.int
getAccentColorDark
(boolean resolve) Returns the dark accent color used by this theme.int
getAccentColorDark
(boolean resolve, boolean inverse) Returns the dark accent color used by this theme.int
Returns the accent tint color used by this theme.int
getTintAccentColor
(boolean resolve) Returns the accent tint color used by this theme.int
getTintAccentColor
(boolean resolve, boolean inverse) Returns the accent tint color used by this theme.int
Returns the dark accent tint color used by this theme.int
getTintAccentColorDark
(boolean resolve) Returns the dark accent tint color used by this theme.int
getTintAccentColorDark
(boolean resolve, boolean inverse) Returns the dark accent tint color used by this theme.setAccentColor
(int accentColor) Set the accent color used by this theme.setAccentColor
(int accentColor, boolean generateTint) Set the accent color used by this theme.setAccentColorDark
(int accentColorDark) Set the dark accent color used by this theme.setAccentColorDark
(int accentColorDark, boolean generateTint) Set the dark accent color used by this theme.setTintAccentColor
(int tintAccentColor) Set the accent tint color used by this theme.setTintAccentColorDark
(int tintAccentColorDark) Set the dark accent tint color used by this theme.
-
Method Details
-
getAccentColor
Returns the accent color used by this theme.- Parameters:
resolve
-true
to resolve the auto color.inverse
-true
to resolve the inverse color.- Returns:
- The accent color used by this theme.
-
getAccentColor
Returns the accent color used by this theme.- Parameters:
resolve
-true
to resolve the auto color.- Returns:
- The accent color used by this theme.
-
getAccentColor
Returns the accent color used by this theme.- Returns:
- The accent color used by this theme.
-
setAccentColor
Set the accent color used by this theme.- Parameters:
accentColor
- The accent color to be set.generateTint
-true
to automatically generate the tint color also.- Returns:
- The
AccentTheme
object to allow for chaining of calls to set methods. - See Also:
-
setAccentColor
Set the accent color used by this theme.It will automatically generate the tint color also.
- Parameters:
accentColor
- The accent color to be set.- Returns:
- The
AccentTheme
object to allow for chaining of calls to set methods. - See Also:
-
getAccentColorDark
Returns the dark accent color used by this theme.- Parameters:
resolve
-true
to resolve the auto color.inverse
-true
to resolve the inverse color.- Returns:
- The dark accent color used by this theme.
-
getAccentColorDark
Returns the dark accent color used by this theme.- Parameters:
resolve
-true
to resolve the auto color.- Returns:
- The dark accent color used by this theme.
-
getAccentColorDark
Returns the dark accent color used by this theme.- Returns:
- The dark accent color used by this theme.
-
setAccentColorDark
Set the dark accent color used by this theme.- Parameters:
accentColorDark
- The dark accent color to be set.generateTint
-true
to automatically generate the tint color also.- Returns:
- The
AccentTheme
object to allow for chaining of calls to set methods. - See Also:
-
setAccentColorDark
Set the dark accent color used by this theme.It will automatically generate the tint color also.
- Parameters:
accentColorDark
- The dark accent color to be set.- Returns:
- The
AccentTheme
object to allow for chaining of calls to set methods. - See Also:
-
getTintAccentColor
Returns the accent tint color used by this theme.- Parameters:
resolve
-true
to resolve the auto color.inverse
-true
to resolve the inverse color.- Returns:
- The accent tint color used by this theme.
-
getTintAccentColor
Returns the accent tint color used by this theme.- Parameters:
resolve
-true
to resolve the auto color.- Returns:
- The accent tint color used by this theme.
-
getTintAccentColor
Returns the accent tint color used by this theme.- Returns:
- The accent tint color used by this theme.
-
setTintAccentColor
Set the accent tint color used by this theme.- Parameters:
tintAccentColor
- The accent tint color to be set.- Returns:
- The
AccentTheme
object to allow for chaining of calls to set methods.
-
getTintAccentColorDark
Returns the dark accent tint color used by this theme.- Parameters:
resolve
-true
to resolve the auto color.inverse
-true
to resolve the inverse color.- Returns:
- The dark accent tint color used by this theme.
-
getTintAccentColorDark
Returns the dark accent tint color used by this theme.- Parameters:
resolve
-true
to resolve the auto color.- Returns:
- The dark accent tint color used by this theme.
-
getTintAccentColorDark
Returns the dark accent tint color used by this theme.- Returns:
- The dark accent tint color used by this theme.
-
setTintAccentColorDark
Set the dark accent tint color used by this theme.- Parameters:
tintAccentColorDark
- The dark accent tint color to be set.- Returns:
- The
AccentTheme
object to allow for chaining of calls to set methods.
-