diff --git a/feature/chatmaterials/src/main/kotlin/dev/meloda/fast/chatmaterials/presentation/ChatMaterialsScreen.kt b/feature/chatmaterials/src/main/kotlin/dev/meloda/fast/chatmaterials/presentation/ChatMaterialsScreen.kt index 916655a9..1b7ed4bb 100644 --- a/feature/chatmaterials/src/main/kotlin/dev/meloda/fast/chatmaterials/presentation/ChatMaterialsScreen.kt +++ b/feature/chatmaterials/src/main/kotlin/dev/meloda/fast/chatmaterials/presentation/ChatMaterialsScreen.kt @@ -56,6 +56,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.DpOffset import androidx.compose.ui.unit.LayoutDirection import androidx.compose.ui.unit.dp @@ -198,7 +199,14 @@ fun ChatMaterialsScreen( .fillMaxWidth() ) { TopAppBar( - title = { Text(text = "Chat Materials") }, + title = { + Text( + text = "Chat Materials", + maxLines = 1, + overflow = TextOverflow.Ellipsis, + style = MaterialTheme.typography.headlineSmall + ) + }, colors = TopAppBarDefaults.topAppBarColors( containerColor = Color.Transparent ), diff --git a/feature/conversations/src/main/kotlin/dev/meloda/fast/conversations/presentation/ConversationsScreen.kt b/feature/conversations/src/main/kotlin/dev/meloda/fast/conversations/presentation/ConversationsScreen.kt index 284fd3b7..1d79030f 100644 --- a/feature/conversations/src/main/kotlin/dev/meloda/fast/conversations/presentation/ConversationsScreen.kt +++ b/feature/conversations/src/main/kotlin/dev/meloda/fast/conversations/presentation/ConversationsScreen.kt @@ -244,7 +244,8 @@ fun ConversationsScreen( else UiR.string.title_conversations ), maxLines = 1, - overflow = TextOverflow.Ellipsis + overflow = TextOverflow.Ellipsis, + style = MaterialTheme.typography.headlineSmall ) }, actions = { diff --git a/feature/friends/src/main/kotlin/dev/meloda/fast/friends/presentation/FriendsScreen.kt b/feature/friends/src/main/kotlin/dev/meloda/fast/friends/presentation/FriendsScreen.kt index 8b87ba8e..be85945c 100644 --- a/feature/friends/src/main/kotlin/dev/meloda/fast/friends/presentation/FriendsScreen.kt +++ b/feature/friends/src/main/kotlin/dev/meloda/fast/friends/presentation/FriendsScreen.kt @@ -242,13 +242,14 @@ fun FriendsScreen( Text( text = stringResource(id = UiR.string.title_friends), maxLines = 1, - overflow = TextOverflow.Ellipsis + overflow = TextOverflow.Ellipsis, + style = MaterialTheme.typography.headlineSmall ) }, colors = TopAppBarDefaults.topAppBarColors( containerColor = Color.Transparent ), - modifier = Modifier.fillMaxWidth(), + modifier = Modifier.fillMaxWidth() ) PrimaryTabRow( selectedTabIndex = selectedTabIndex, diff --git a/feature/languagepicker/src/main/kotlin/dev/meloda/fast/languagepicker/presentation/LanguagePickerScreen.kt b/feature/languagepicker/src/main/kotlin/dev/meloda/fast/languagepicker/presentation/LanguagePickerScreen.kt index 8a283ff7..95da1a66 100644 --- a/feature/languagepicker/src/main/kotlin/dev/meloda/fast/languagepicker/presentation/LanguagePickerScreen.kt +++ b/feature/languagepicker/src/main/kotlin/dev/meloda/fast/languagepicker/presentation/LanguagePickerScreen.kt @@ -108,7 +108,12 @@ fun LanguagePickerScreen( } LargeTopAppBar( - title = { Text(text = stringResource(id = UiR.string.title_application_language)) }, + title = { + Text( + text = stringResource(id = UiR.string.title_application_language), + style = MaterialTheme.typography.headlineSmall + ) + }, navigationIcon = { IconButton(onClick = onBack) { Icon( diff --git a/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/MessagesHistoryScreen.kt b/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/MessagesHistoryScreen.kt index aaaf4e71..c5b8764b 100644 --- a/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/MessagesHistoryScreen.kt +++ b/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/MessagesHistoryScreen.kt @@ -213,7 +213,10 @@ fun MessagesHistoryScreen( Text( text = if (screenState.isLoading) stringResource(id = UiR.string.title_loading) - else screenState.title + else screenState.title, + maxLines = 1, + overflow = TextOverflow.Ellipsis, + style = MaterialTheme.typography.headlineSmall ) }, navigationIcon = { diff --git a/feature/settings/src/main/kotlin/dev/meloda/fast/settings/presentation/SettingsScreen.kt b/feature/settings/src/main/kotlin/dev/meloda/fast/settings/presentation/SettingsScreen.kt index 0b039042..80486577 100644 --- a/feature/settings/src/main/kotlin/dev/meloda/fast/settings/presentation/SettingsScreen.kt +++ b/feature/settings/src/main/kotlin/dev/meloda/fast/settings/presentation/SettingsScreen.kt @@ -28,6 +28,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalView import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.LayoutDirection import androidx.lifecycle.compose.collectAsStateWithLifecycle import dev.chrisbanes.haze.HazeState @@ -128,7 +129,14 @@ fun SettingsScreen( contentWindowInsets = WindowInsets.statusBars, topBar = { TopAppBar( - title = { Text(text = stringResource(id = UiR.string.title_settings)) }, + title = { + Text( + text = stringResource(id = UiR.string.title_settings), + maxLines = 1, + overflow = TextOverflow.Ellipsis, + style = MaterialTheme.typography.headlineSmall + ) + }, navigationIcon = { IconButton(onClick = onBack) { Icon(