halilozercan / compose-richtext

A collection of Compose libraries for advanced text formatting and alternative display types.
https://halilibo.com/compose-richtext
Apache License 2.0
750 stars 59 forks source link

Use primary as the default for link color (material 3 UI) #107

Open dessalines opened 1 year ago

dessalines commented 1 year ago

Currently its always blue, which doesn't look great for most material themes.

I'm getting around this manually by doing:

val richTextStyle = RichTextStyle().resolveDefaults().copy(
  stringStyle = RichTextStringStyle().copy(
    linkStyle = MaterialTheme.typography.bodyLarge.toSpanStyle().copy(
      color = MaterialTheme.colorScheme.primary
    )
  )
)