Adjusted UI font size

This commit is contained in:
Abdelilah El Aissaoui 2022-01-19 00:57:08 +01:00
parent 0044335f3e
commit 5bd15a0c22
4 changed files with 14 additions and 17 deletions

View File

@ -101,7 +101,7 @@ fun CommitChangesView(
textAlign = TextAlign.Center,
color = MaterialTheme.colors.headerText,
maxLines = 1,
fontSize = 14.sp,
fontSize = 13.sp,
)
@ -153,7 +153,7 @@ fun Author(commit: RevCommit) {
color = MaterialTheme.colors.secondaryTextColor,
maxLines = 1,
modifier = Modifier.padding(horizontal = 16.dp),
fontSize = 12.sp,
fontSize = 13.sp,
tooltipTitle = authorIdent.`when`.toSystemDateTimeString()
)
@ -185,7 +185,7 @@ fun CommitLogChanges(diffEntries: List<DiffEntry>, onDiffSelected: (DiffEntry) -
Column(
modifier = Modifier
.height(48.dp)
.height(40.dp)
.fillMaxWidth()
.clickable {
selectedIndex.value = index
@ -211,7 +211,7 @@ fun CommitLogChanges(diffEntries: List<DiffEntry>, onDiffSelected: (DiffEntry) -
modifier = Modifier.padding(horizontal = 8.dp),
color = textColor,
maxLines = 1,
fontSize = 14.sp,
fontSize = 13.sp,
overflow = TextOverflow.Ellipsis,
)
}

View File

@ -252,7 +252,7 @@ private fun EntriesList(
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center,
color = MaterialTheme.colors.headerText,
fontSize = 14.sp,
fontSize = 13.sp,
maxLines = 1,
)
@ -337,7 +337,7 @@ private fun FileEntry(
) {
Row(
modifier = Modifier
.height(48.dp)
.height(40.dp)
.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
) {
@ -356,7 +356,7 @@ private fun FileEntry(
modifier = Modifier.weight(1f, fill = true),
maxLines = 1,
overflow = TextOverflow.Ellipsis,
fontSize = 14.sp,
fontSize = 13.sp,
color = MaterialTheme.colors.primaryTextColor,
)
}
@ -368,15 +368,13 @@ private fun FileEntry(
enter = fadeIn(),
exit = fadeOut(),
) {
Button(
SecondaryButton(
onClick = onButtonClick,
text = actionTitle,
backgroundButton = actionColor,
modifier = Modifier
.padding(horizontal = 16.dp),
elevation = ButtonDefaults.elevation(0.dp, 0.dp, 0.dp),
colors = ButtonDefaults.buttonColors(backgroundColor = actionColor)
) {
Text(actionTitle, fontSize = 12.sp)
}
)
}
}
}

View File

@ -21,9 +21,8 @@ fun SideMenuEntry(
) {
Row(
modifier = Modifier
.height(40.dp)
.fillMaxWidth()
.clickable(onClick = {}),
.height(32.dp)
.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
) {

View File

@ -51,7 +51,7 @@ fun SideMenuSubentry(
text = text,
modifier = Modifier.weight(1f, fill = true),
maxLines = 1,
fontSize = 14.sp,
fontSize = 13.sp,
fontWeight = if (bold) FontWeight.SemiBold else FontWeight.Normal,
color = MaterialTheme.colors.primaryTextColor,
overflow = TextOverflow.Ellipsis,