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