Skip to content

Commit

Permalink
Change chip appearance and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
MM2-0 committed May 29, 2022
1 parent 6caef6e commit dc492cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ui/src/main/java/de/mm20/launcher2/ui/component/Chip.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fun Chip(
shape = RoundedCornerShape(8.dp),
modifier = modifier,
color = Color.Transparent,
border = BorderStroke(1.dp, MaterialTheme.colorScheme.outline),
border = BorderStroke(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.17f)),
contentColor = MaterialTheme.colorScheme.onSurface,
onClick = onClick
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fun AppItem(
.padding(top = 16.dp)
.animateContentSize(),
mainAxisSpacing = 16.dp,
crossAxisSpacing = 8.dp
crossAxisSpacing = 0.dp
) {
val notifications by viewModel.notifications.collectAsState(initial = emptyList())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fun ContactItem(

if (contact.phones.isNotEmpty()) {
Row(
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
modifier = Modifier.padding(horizontal = 16.dp),
verticalAlignment = Alignment.CenterVertically
) {
Icon(Icons.Rounded.Call, contentDescription = null)
Expand All @@ -130,7 +130,7 @@ fun ContactItem(
}
if (contact.emails.isNotEmpty()) {
Row(
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
modifier = Modifier.padding(horizontal = 16.dp),
verticalAlignment = Alignment.CenterVertically
) {
Icon(Icons.Rounded.Email, contentDescription = null)
Expand All @@ -154,7 +154,7 @@ fun ContactItem(
}
if (contact.telegram.isNotEmpty()) {
Row(
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
modifier = Modifier.padding(horizontal = 16.dp),
verticalAlignment = Alignment.CenterVertically
) {
Icon(Icons.Rounded.Telegram, contentDescription = null)
Expand All @@ -178,7 +178,7 @@ fun ContactItem(
}
if (contact.whatsapp.isNotEmpty()) {
Row(
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
modifier = Modifier.padding(horizontal = 16.dp),
verticalAlignment = Alignment.CenterVertically
) {
Icon(Icons.Rounded.WhatsApp, contentDescription = null)
Expand All @@ -202,7 +202,7 @@ fun ContactItem(
}
if (contact.postals.isNotEmpty()) {
Row(
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
modifier = Modifier.padding(horizontal = 16.dp),
verticalAlignment = Alignment.CenterVertically
) {
Icon(Icons.Rounded.Place, contentDescription = null)
Expand Down

0 comments on commit dc492cf

Please sign in to comment.