From 8efe6e51b8a4ac7a410c5eeeee34b0ee8d10df80 Mon Sep 17 00:00:00 2001 From: Maciej Procyk Date: Wed, 13 Mar 2024 00:52:47 +0100 Subject: [PATCH] fix default header size --- .../in/procyk/compose/calendar/header/DefaultMonthHeader.kt | 4 ++-- .../in/procyk/compose/calendar/header/DefaultWeekHeader.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar/src/commonMain/kotlin/in/procyk/compose/calendar/header/DefaultMonthHeader.kt b/calendar/src/commonMain/kotlin/in/procyk/compose/calendar/header/DefaultMonthHeader.kt index 5810fdf..cb8719d 100644 --- a/calendar/src/commonMain/kotlin/in/procyk/compose/calendar/header/DefaultMonthHeader.kt +++ b/calendar/src/commonMain/kotlin/in/procyk/compose/calendar/header/DefaultMonthHeader.kt @@ -54,14 +54,14 @@ fun DefaultMonthHeader( .name .lowercase() .replaceFirstChar { it.titlecase() }, - style = MaterialTheme.typography.headlineMedium, + style = MaterialTheme.typography.titleLarge, maxLines = 1, overflow = TextOverflow.Ellipsis, ) Spacer(modifier = Modifier.width(8.dp)) Text( text = monthState.currentMonth.year.toString(), - style = MaterialTheme.typography.headlineMedium, + style = MaterialTheme.typography.titleLarge, maxLines = 1, overflow = TextOverflow.Ellipsis ) diff --git a/calendar/src/commonMain/kotlin/in/procyk/compose/calendar/header/DefaultWeekHeader.kt b/calendar/src/commonMain/kotlin/in/procyk/compose/calendar/header/DefaultWeekHeader.kt index 067fc1b..524056a 100644 --- a/calendar/src/commonMain/kotlin/in/procyk/compose/calendar/header/DefaultWeekHeader.kt +++ b/calendar/src/commonMain/kotlin/in/procyk/compose/calendar/header/DefaultWeekHeader.kt @@ -54,14 +54,14 @@ fun DefaultWeekHeader( .name .lowercase() .replaceFirstChar { it.titlecase() }, - style = MaterialTheme.typography.headlineMedium, + style = MaterialTheme.typography.titleLarge, maxLines = 1, overflow = TextOverflow.Ellipsis ) Spacer(modifier = Modifier.width(8.dp)) Text( text = weekState.currentWeek.yearMonth.year.toString(), - style = MaterialTheme.typography.headlineMedium, + style = MaterialTheme.typography.titleLarge, maxLines = 1, overflow = TextOverflow.Ellipsis )