create App Compat Theme
fun Context.createAppCompatTheme(readColors: Boolean = true, readTypography: Boolean = true): ThemeParameters
Content copied to clipboard
This function creates the components of a androidx.compose.material.MaterialTheme, reading the values from the Theme.AppCompat Android theme. Please see the documentation of AppCompatTheme for more information on how the theme is read.
The individual components of the returned ThemeParameters may be null, depending on the matching 'read' parameter. For example, if you set readColors to false, ThemeParameters.colors will be null.
Return
ThemeParameters instance containing the resulting Colors and Typography
Parameters
readColors
whether the read the color palette from this context's theme.
readTypography
whether to read the font family from this context's theme.