Create alias for typography (more semantic name). aliasScreenTitle

This commit is contained in:
Benoit Marty
2023-07-11 09:40:48 +02:00
committed by Benoit Marty
parent f365b6f6c9
commit b7b6e0323d
15 changed files with 55 additions and 14 deletions
@@ -43,6 +43,7 @@ import io.element.android.libraries.designsystem.theme.components.Scaffold
import io.element.android.libraries.designsystem.theme.components.Text
import io.element.android.libraries.designsystem.theme.components.TopAppBar
import io.element.android.libraries.theme.ElementTheme
import io.element.android.libraries.theme.aliasScreenTitle
@OptIn(ExperimentalLayoutApi::class)
@Composable
@@ -94,7 +95,7 @@ fun PreferenceTopAppBar(
title = {
Text(
text = title,
style = ElementTheme.typography.fontHeadingSmMedium,
style = ElementTheme.typography.aliasScreenTitle,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)