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(
text = filePath, text = filePath,
style = MaterialTheme.typography.body1, style = MaterialTheme.typography.body2,
maxLines = 1,
modifier = Modifier.padding(horizontal = 16.dp), modifier = Modifier.padding(horizontal = 16.dp),
) )

View File

@ -20,6 +20,7 @@ fun SecondaryButton(
text: String, text: String,
textColor: Color = Color.White, textColor: Color = Color.White,
backgroundButton: Color, backgroundButton: Color,
maxLines: Int = 1,
onClick: () -> Unit, onClick: () -> Unit,
) { ) {
Box( Box(
@ -33,6 +34,7 @@ fun SecondaryButton(
text = text, text = text,
style = MaterialTheme.typography.body2, style = MaterialTheme.typography.body2,
color = textColor, color = textColor,
maxLines = maxLines,
modifier = Modifier.padding(vertical = 4.dp, horizontal = 16.dp) 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), modifier = Modifier.width(graphWidth).padding(start = 16.dp),
text = "Graph", text = "Graph",
color = MaterialTheme.colors.headerText, color = MaterialTheme.colors.headerText,
style = MaterialTheme.typography.body1, style = MaterialTheme.typography.body2,
maxLines = 1, maxLines = 1,
) )
@ -598,7 +598,7 @@ fun GraphHeader(
.weight(1f), .weight(1f),
text = "Message", text = "Message",
color = MaterialTheme.colors.headerText, color = MaterialTheme.colors.headerText,
style = MaterialTheme.typography.body1, style = MaterialTheme.typography.body2,
maxLines = 1, maxLines = 1,
) )
@ -609,7 +609,7 @@ fun GraphHeader(
) { ) {
Icon( Icon(
Icons.Default.Search, Icons.Default.Search,
modifier = Modifier.size(24.dp), modifier = Modifier.size(18.dp),
contentDescription = null, contentDescription = null,
tint = MaterialTheme.colors.primaryTextColor, tint = MaterialTheme.colors.primaryTextColor,
) )