mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-09 12:04:11 +08:00
refactor: title text use bold font in Typography
This commit is contained in:
@@ -26,6 +26,7 @@ package com.highcapable.flexiui
|
|||||||
import androidx.compose.runtime.Immutable
|
import androidx.compose.runtime.Immutable
|
||||||
import androidx.compose.runtime.staticCompositionLocalOf
|
import androidx.compose.runtime.staticCompositionLocalOf
|
||||||
import androidx.compose.ui.text.TextStyle
|
import androidx.compose.ui.text.TextStyle
|
||||||
|
import androidx.compose.ui.text.font.FontWeight
|
||||||
import androidx.compose.ui.unit.em
|
import androidx.compose.ui.unit.em
|
||||||
import androidx.compose.ui.unit.sp
|
import androidx.compose.ui.unit.sp
|
||||||
|
|
||||||
@@ -43,11 +44,13 @@ internal val LocalTypography = staticCompositionLocalOf { DefaultTypography }
|
|||||||
internal val DefaultTypography = Typography(
|
internal val DefaultTypography = Typography(
|
||||||
titlePrimary = TextStyle(
|
titlePrimary = TextStyle(
|
||||||
fontSize = 25.sp,
|
fontSize = 25.sp,
|
||||||
lineHeight = 1.5.em
|
lineHeight = 1.5.em,
|
||||||
|
fontWeight = FontWeight.Bold
|
||||||
),
|
),
|
||||||
titleSecondary = TextStyle(
|
titleSecondary = TextStyle(
|
||||||
fontSize = 18.sp,
|
fontSize = 18.sp,
|
||||||
lineHeight = 1.2.em
|
lineHeight = 1.2.em,
|
||||||
|
fontWeight = FontWeight.Bold
|
||||||
),
|
),
|
||||||
subtitle = TextStyle(
|
subtitle = TextStyle(
|
||||||
fontSize = 12.sp,
|
fontSize = 12.sp,
|
||||||
|
Reference in New Issue
Block a user