Adjusted UI font size
This commit is contained in:
parent
0044335f3e
commit
5bd15a0c22
@ -101,7 +101,7 @@ fun CommitChangesView(
|
|||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
color = MaterialTheme.colors.headerText,
|
color = MaterialTheme.colors.headerText,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
fontSize = 14.sp,
|
fontSize = 13.sp,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ fun Author(commit: RevCommit) {
|
|||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.secondaryTextColor,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
modifier = Modifier.padding(horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
fontSize = 12.sp,
|
fontSize = 13.sp,
|
||||||
tooltipTitle = authorIdent.`when`.toSystemDateTimeString()
|
tooltipTitle = authorIdent.`when`.toSystemDateTimeString()
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -185,7 +185,7 @@ fun CommitLogChanges(diffEntries: List<DiffEntry>, onDiffSelected: (DiffEntry) -
|
|||||||
|
|
||||||
Column(
|
Column(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.height(48.dp)
|
.height(40.dp)
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.clickable {
|
.clickable {
|
||||||
selectedIndex.value = index
|
selectedIndex.value = index
|
||||||
@ -211,7 +211,7 @@ fun CommitLogChanges(diffEntries: List<DiffEntry>, onDiffSelected: (DiffEntry) -
|
|||||||
modifier = Modifier.padding(horizontal = 8.dp),
|
modifier = Modifier.padding(horizontal = 8.dp),
|
||||||
color = textColor,
|
color = textColor,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
fontSize = 14.sp,
|
fontSize = 13.sp,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -252,7 +252,7 @@ private fun EntriesList(
|
|||||||
fontWeight = FontWeight.Bold,
|
fontWeight = FontWeight.Bold,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
color = MaterialTheme.colors.headerText,
|
color = MaterialTheme.colors.headerText,
|
||||||
fontSize = 14.sp,
|
fontSize = 13.sp,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -337,7 +337,7 @@ private fun FileEntry(
|
|||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.height(48.dp)
|
.height(40.dp)
|
||||||
.fillMaxWidth(),
|
.fillMaxWidth(),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
@ -356,7 +356,7 @@ private fun FileEntry(
|
|||||||
modifier = Modifier.weight(1f, fill = true),
|
modifier = Modifier.weight(1f, fill = true),
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
fontSize = 14.sp,
|
fontSize = 13.sp,
|
||||||
color = MaterialTheme.colors.primaryTextColor,
|
color = MaterialTheme.colors.primaryTextColor,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -368,15 +368,13 @@ private fun FileEntry(
|
|||||||
enter = fadeIn(),
|
enter = fadeIn(),
|
||||||
exit = fadeOut(),
|
exit = fadeOut(),
|
||||||
) {
|
) {
|
||||||
Button(
|
SecondaryButton(
|
||||||
onClick = onButtonClick,
|
onClick = onButtonClick,
|
||||||
|
text = actionTitle,
|
||||||
|
backgroundButton = actionColor,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(horizontal = 16.dp),
|
.padding(horizontal = 16.dp),
|
||||||
elevation = ButtonDefaults.elevation(0.dp, 0.dp, 0.dp),
|
)
|
||||||
colors = ButtonDefaults.buttonColors(backgroundColor = actionColor)
|
|
||||||
) {
|
|
||||||
Text(actionTitle, fontSize = 12.sp)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -21,9 +21,8 @@ fun SideMenuEntry(
|
|||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.height(40.dp)
|
.height(32.dp)
|
||||||
.fillMaxWidth()
|
.fillMaxWidth(),
|
||||||
.clickable(onClick = {}),
|
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ fun SideMenuSubentry(
|
|||||||
text = text,
|
text = text,
|
||||||
modifier = Modifier.weight(1f, fill = true),
|
modifier = Modifier.weight(1f, fill = true),
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
fontSize = 14.sp,
|
fontSize = 13.sp,
|
||||||
fontWeight = if (bold) FontWeight.SemiBold else FontWeight.Normal,
|
fontWeight = if (bold) FontWeight.SemiBold else FontWeight.Normal,
|
||||||
color = MaterialTheme.colors.primaryTextColor,
|
color = MaterialTheme.colors.primaryTextColor,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
|
Loading…
Reference in New Issue
Block a user