mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-18 16:25:27 +02:00
Change time selector block font
This commit is contained in:
parent
25cbd82534
commit
f0ea9472b3
@ -40,6 +40,7 @@ import com.sadellie.unitto.core.base.R
|
||||
data class NumberTypography(
|
||||
val displayLarge: TextStyle,
|
||||
val displayMedium: TextStyle,
|
||||
val displaySmall: TextStyle,
|
||||
val headlineMedium: TextStyle,
|
||||
val headlineSmall: TextStyle,
|
||||
val bodyLarge: TextStyle,
|
||||
@ -166,11 +167,18 @@ val NumberTypographyUnitto by lazy {
|
||||
),
|
||||
displayMedium = TextStyle(
|
||||
fontFamily = latoFamily,
|
||||
fontWeight = FontWeight.W400,
|
||||
fontWeight = FontWeight.Normal,
|
||||
fontSize = 38.sp,
|
||||
lineHeight = 42.sp,
|
||||
letterSpacing = (-0.25).sp,
|
||||
),
|
||||
displaySmall = TextStyle(
|
||||
fontFamily = latoFamily,
|
||||
fontWeight = FontWeight.Normal,
|
||||
fontSize = 36.sp,
|
||||
lineHeight = 44.sp,
|
||||
letterSpacing = 0.sp,
|
||||
),
|
||||
headlineMedium = TextStyle(
|
||||
fontFamily = latoFamily,
|
||||
fontWeight = FontWeight.Normal,
|
||||
@ -201,6 +209,7 @@ val NumberTypographySystem by lazy {
|
||||
NumberTypography(
|
||||
displayLarge = TypographySystem.displayLarge,
|
||||
displayMedium = TypographySystem.displayMedium,
|
||||
displaySmall = TypographySystem.displaySmall,
|
||||
headlineMedium = TypographySystem.headlineMedium,
|
||||
headlineSmall = TypographySystem.headlineSmall,
|
||||
bodyLarge = TypographySystem.bodyLarge
|
||||
|
@ -48,6 +48,7 @@ import com.sadellie.unitto.core.ui.datetime.formatDateWeekDayMonthYear
|
||||
import com.sadellie.unitto.core.ui.datetime.formatTime
|
||||
import com.sadellie.unitto.core.ui.datetime.formatTime12Short
|
||||
import com.sadellie.unitto.core.ui.datetime.formatTimeAmPm
|
||||
import com.sadellie.unitto.core.ui.theme.LocalNumberTypography
|
||||
import java.time.ZonedDateTime
|
||||
|
||||
@Composable
|
||||
@ -93,7 +94,7 @@ internal fun DateTimeSelectorBlock(
|
||||
onClick = onTimeClick
|
||||
),
|
||||
text = time.formatTime(locale, true),
|
||||
style = MaterialTheme.typography.displaySmall,
|
||||
style = LocalNumberTypography.current.displaySmall,
|
||||
maxLines = 1
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user