Interface CodeTheme<T extends CodeTheme<T>>
- Type Parameters:
T
- The type of the dynamic theme.
- All Superinterfaces:
BaseTheme<T>
,StringTheme<T>
- All Known Implementing Classes:
AppTheme
,AppWidgetTheme
A
BaseTheme
to implement the code theme.-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the color for the code background.float
Returns the code contrast ratio for by this theme.Returns the data for the theme code.int
Returns the color for the code data.int
Returns the color for the code finder.int
Returns the color for the code overlay.int
Returns the color for the code stroke.int
Returns the style for the theme code.Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.BaseTheme
isHost, setHost
Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.StringTheme
getThemeData, toDynamicString, toJsonString, toJsonString
-
Method Details
-
getCodeData
Returns the data for the theme code.- Returns:
- The data for the theme code.
-
getCodeBackgroundColor
Returns the color for the code background.- Returns:
- The color for the code background.
-
getCodeStrokeColor
Returns the color for the code stroke.- Returns:
- The color for the code stroke.
-
getCodeDataColor
Returns the color for the code data.- Returns:
- The color for the code data.
-
getCodeFinderColor
Returns the color for the code finder.- Returns:
- The color for the finder data.
-
getCodeOverlayColor
Returns the color for the code overlay.- Returns:
- The color for the code overlay.
-
getCodeContrastRatio
float getCodeContrastRatio()Returns the code contrast ratio for by this theme.- Returns:
- The code contrast ratio for by this theme.
-
getCodeStyle
int getCodeStyle()Returns the style for the theme code.- Returns:
- The style for the theme code.
-