Added color to the date in the selected log row
This commit is contained in:
parent
ce3677681e
commit
47b89de37e
@ -90,6 +90,13 @@ fun Log(
|
|||||||
MaterialTheme.colors.primary
|
MaterialTheme.colors.primary
|
||||||
} else
|
} else
|
||||||
MaterialTheme.colors.primaryTextColor
|
MaterialTheme.colors.primaryTextColor
|
||||||
|
|
||||||
|
val secondaryTextColor = if (selectedIndex.value == index) {
|
||||||
|
MaterialTheme.colors.primary
|
||||||
|
} else
|
||||||
|
MaterialTheme.colors.secondaryTextColor
|
||||||
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
Spacer(modifier = Modifier.weight(2f))
|
Spacer(modifier = Modifier.weight(2f))
|
||||||
Row(
|
Row(
|
||||||
@ -119,7 +126,7 @@ fun Log(
|
|||||||
text = item.committerIdent.`when`.toSmartSystemString(),
|
text = item.committerIdent.`when`.toSmartSystemString(),
|
||||||
modifier = Modifier.padding(horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
fontSize = 12.sp,
|
fontSize = 12.sp,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = secondaryTextColor,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user