Skip to content

Commit

Permalink
Merge pull request #815 from leinardi/alertdialog
Browse files Browse the repository at this point in the history
fix issue with HtmlText and dark theme
  • Loading branch information
mikepenz committed Nov 23, 2022
2 parents 8791a05 + a34b18d commit 19277f6
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -155,7 +155,11 @@ fun LicenseDialog(
}

@Composable
fun HtmlText(html: String, modifier: Modifier = Modifier, color: Color = Color.Black) {
fun HtmlText(
html: String,
modifier: Modifier = Modifier,
color: Color = LibraryDefaults.libraryColors().contentColor
) {
AndroidView(modifier = modifier, factory = { context ->
TextView(context).apply {
setTextColor(color.toArgb())
Expand Down

0 comments on commit 19277f6

Please sign in to comment.