Reduced titles sizes and limited secondary button lines to 1
This commit is contained in:
parent
914edc9aa7
commit
6398244895
@ -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),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user