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

public interface AccentTheme<T extends AccentTheme<T>> extends BaseTheme<T>
A BaseTheme to implement the accent theme.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.

    Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.BaseTheme

    isHost, setHost
  • Method Details

    • getAccentColor

      @ColorInt int getAccentColor(boolean resolve, boolean inverse)
      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

      @ColorInt int getAccentColor(boolean resolve)
      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

      @ColorInt int getAccentColor()
      Returns the accent color used by this theme.
      Returns:
      The accent color used by this theme.
    • setAccentColor

      @NonNull T setAccentColor(@ColorInt int accentColor, boolean generateTint)
      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

      @NonNull T setAccentColor(@ColorInt int accentColor)
      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

      @ColorInt int getAccentColorDark(boolean resolve, boolean inverse)
      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

      @ColorInt int getAccentColorDark(boolean resolve)
      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

      @ColorInt int getAccentColorDark()
      Returns the dark accent color used by this theme.
      Returns:
      The dark accent color used by this theme.
    • setAccentColorDark

      @NonNull T setAccentColorDark(@ColorInt int accentColorDark, boolean generateTint)
      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

      @NonNull T setAccentColorDark(@ColorInt int accentColorDark)
      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

      @ColorInt int getTintAccentColor(boolean resolve, boolean inverse)
      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

      @ColorInt int getTintAccentColor(boolean resolve)
      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

      @ColorInt int getTintAccentColor()
      Returns the accent tint color used by this theme.
      Returns:
      The accent tint color used by this theme.
    • setTintAccentColor

      @NonNull T setTintAccentColor(@ColorInt int tintAccentColor)
      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

      @ColorInt int getTintAccentColorDark(boolean resolve, boolean inverse)
      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

      @ColorInt int getTintAccentColorDark(boolean resolve)
      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

      @ColorInt int getTintAccentColorDark()
      Returns the dark accent tint color used by this theme.
      Returns:
      The dark accent tint color used by this theme.
    • setTintAccentColorDark

      @NonNull T setTintAccentColorDark(@ColorInt int tintAccentColorDark)
      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.