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 TypeMethodDescriptionintReturns the color for the code background.floatReturns the code contrast ratio for by this theme.Returns the data for the theme code.intReturns the color for the code data.intReturns the color for the code finder.intReturns the color for the code overlay.intReturns the color for the code stroke.intReturns the style for the theme code.Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.BaseTheme
isHost, setHostMethods 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.
-