Closed leinardi closed 1 year ago
@leinardi can you reproduce this in the sample app?
Interesting enough the color is already passed via the LibraryDefaults
here: https://github.com/mikepenz/AboutLibraries/blob/a34b18d0996b9aff1dbe2d8489869a5535fee8bb/aboutlibraries-compose/src/androidMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/Libraries.kt#LL150C48-L150C48
So it should pick the right color 🤔
So it should pick the right color
Yep, but in mine implementation I'm calling HtmlText
directly since I show a custom AlertDialog
:wink:
This change it's only needed for users that call HtmlText
directly, like I do.
If you don't like this change, could you please remove the default argument from the HtmlText
? This way who calls it will be forced to provide a color, instead of falling back to Color.Black
.
Thanks for the explanation. Makes a lot of sense :)
This PR fixes an issue I found when using
HtmlText
together with a Dark theme:Instead of hard-coding the default color of this Composable to
Color.Black
, it now uses theLibraryDefaults.libraryColors().contentColor
, that properly support Light and Dark themes.