Reduced titles sizes and limited secondary button lines to 1

This commit is contained in:
Abdelilah El Aissaoui 2022-08-06 02:26:30 +02:00
parent 914edc9aa7
commit 6398244895
3 changed files with 7 additions and 4 deletions

View File

@ -349,7 +349,8 @@ fun DiffHeader(
Text(
text = filePath,
style = MaterialTheme.typography.body1,
style = MaterialTheme.typography.body2,
maxLines = 1,
modifier = Modifier.padding(horizontal = 16.dp),
)

View File

@ -20,6 +20,7 @@ fun SecondaryButton(
text: String,
textColor: Color = Color.White,
backgroundButton: Color,
maxLines: Int = 1,
onClick: () -> Unit,
) {
Box(
@ -33,6 +34,7 @@ fun SecondaryButton(
text = text,
style = MaterialTheme.typography.body2,
color = textColor,
maxLines = maxLines,
modifier = Modifier.padding(vertical = 4.dp, horizontal = 16.dp)
)
}

View File

@ -578,7 +578,7 @@ fun GraphHeader(
modifier = Modifier.width(graphWidth).padding(start = 16.dp),
text = "Graph",
color = MaterialTheme.colors.headerText,
style = MaterialTheme.typography.body1,
style = MaterialTheme.typography.body2,
maxLines = 1,
)
@ -598,7 +598,7 @@ fun GraphHeader(
.weight(1f),
text = "Message",
color = MaterialTheme.colors.headerText,
style = MaterialTheme.typography.body1,
style = MaterialTheme.typography.body2,
maxLines = 1,
)
@ -609,7 +609,7 @@ fun GraphHeader(
) {
Icon(
Icons.Default.Search,
modifier = Modifier.size(24.dp),
modifier = Modifier.size(18.dp),
contentDescription = null,
tint = MaterialTheme.colors.primaryTextColor,
)