mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-03 00:07:33 +01:00
fix: text style used for links in Markdown (#88)
This commit is contained in:
parent
11a0ff15ca
commit
69728c6ebd
@ -11,6 +11,8 @@ import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalUriHandler
|
||||
import androidx.compose.ui.text.font.FontFamily
|
||||
import androidx.compose.ui.text.font.FontStyle
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextDecoration
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.di.getThemeRepository
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.Spacing
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.readContentAlpha
|
||||
@ -67,6 +69,11 @@ fun PostCardBody(
|
||||
list = typography.bodyMedium,
|
||||
ordered = typography.bodyMedium,
|
||||
code = typography.bodyMedium.copy(fontFamily = FontFamily.Monospace),
|
||||
link =
|
||||
typography.bodyMedium.copy(
|
||||
fontWeight = FontWeight.Bold,
|
||||
textDecoration = TextDecoration.Underline,
|
||||
),
|
||||
),
|
||||
colors =
|
||||
markdownColor(
|
||||
|
@ -12,6 +12,7 @@ import androidx.compose.ui.platform.LocalUriHandler
|
||||
import androidx.compose.ui.text.font.FontFamily
|
||||
import androidx.compose.ui.text.font.FontStyle
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextDecoration
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.di.getThemeRepository
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.Spacing
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.readContentAlpha
|
||||
@ -77,6 +78,11 @@ fun PostCardTitle(
|
||||
list = typography.bodyMedium,
|
||||
ordered = typography.bodyMedium,
|
||||
code = typography.bodyMedium.copy(fontFamily = FontFamily.Monospace),
|
||||
link =
|
||||
typography.bodyMedium.copy(
|
||||
fontWeight = FontWeight.Bold,
|
||||
textDecoration = TextDecoration.Underline,
|
||||
),
|
||||
),
|
||||
colors =
|
||||
markdownColor(
|
||||
|
Loading…
x
Reference in New Issue
Block a user