mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-09 20:39:24 +02:00
Fixes heading sizes on markdown
This commit is contained in:
parent
9af123b709
commit
ac5f550ff3
@ -74,22 +74,30 @@ internal val DefaultHeadingStyle: HeadingStyle = { level, textStyle ->
|
||||
lineHeight = 36.sp,
|
||||
)
|
||||
2 ->
|
||||
Typography.displaySmall.copy(
|
||||
fontSize = 26.sp,
|
||||
lineHeight = 34.sp,
|
||||
)
|
||||
3 ->
|
||||
Typography.displaySmall.copy(
|
||||
fontSize = 24.sp,
|
||||
lineHeight = 32.sp,
|
||||
)
|
||||
3 ->
|
||||
4 ->
|
||||
Typography.headlineLarge.copy(
|
||||
fontSize = 22.sp,
|
||||
lineHeight = 26.sp,
|
||||
)
|
||||
4 ->
|
||||
5 ->
|
||||
Typography.headlineMedium.copy(
|
||||
fontSize = 20.sp,
|
||||
lineHeight = 24.sp,
|
||||
)
|
||||
5 -> Typography.headlineSmall
|
||||
6 -> Typography.titleLarge
|
||||
6 ->
|
||||
Typography.headlineSmall.copy(
|
||||
fontSize = 18.sp,
|
||||
lineHeight = 22.sp,
|
||||
)
|
||||
else -> textStyle
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user