Skip to content

Commit

Permalink
fix: adjust height of conversation icons
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreferris committed Aug 28, 2023
1 parent 0df4b07 commit 073693a
Showing 1 changed file with 24 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,15 @@ fun EventBadgeFactory(eventType: BadgeEventType, modifier: Modifier = Modifier)
@Composable
private fun MissedCallBadge(modifier: Modifier = Modifier) {
NotificationBadgeContainer(
modifier = modifier.width(24.dp).height(18.dp),
modifier = modifier
.width(dimensions().spacing24x)
.height(dimensions().spacing20x),
notificationIcon = {
Image(
painter = painterResource(id = R.drawable.ic_event_badge_missed_call),
contentDescription = null,
colorFilter = ColorFilter.tint(MaterialTheme.wireColorScheme.onBadge),
modifier = Modifier.height(dimensions().spacing18x)
)
}
)
Expand All @@ -80,12 +83,15 @@ private fun MissedCallBadge(modifier: Modifier = Modifier) {
@Composable
private fun UnreadMentionBadge(modifier: Modifier = Modifier) {
NotificationBadgeContainer(
modifier = modifier.width(24.dp).height(18.dp),
modifier = modifier
.width(dimensions().spacing24x)
.height(dimensions().spacing20x),
notificationIcon = {
Image(
painter = painterResource(id = R.drawable.ic_event_badge_unread_mention),
contentDescription = null,
colorFilter = ColorFilter.tint(MaterialTheme.wireColorScheme.onBadge)
colorFilter = ColorFilter.tint(MaterialTheme.wireColorScheme.onBadge),
modifier = Modifier.height(dimensions().spacing18x)
)
}
)
Expand All @@ -94,12 +100,15 @@ private fun UnreadMentionBadge(modifier: Modifier = Modifier) {
@Composable
private fun UnreadReplyBadge(modifier: Modifier = Modifier) {
NotificationBadgeContainer(
modifier = modifier.width(24.dp).height(18.dp),
modifier = modifier
.width(dimensions().spacing24x)
.height(dimensions().spacing20x),
notificationIcon = {
Image(
painter = painterResource(id = R.drawable.ic_event_badge_unread_reply),
contentDescription = null,
colorFilter = ColorFilter.tint(MaterialTheme.wireColorScheme.onBadge)
colorFilter = ColorFilter.tint(MaterialTheme.wireColorScheme.onBadge),
modifier = Modifier.height(dimensions().spacing18x)
)
}
)
Expand All @@ -108,12 +117,15 @@ private fun UnreadReplyBadge(modifier: Modifier = Modifier) {
@Composable
fun UnreadKnockBadge(modifier: Modifier = Modifier) {
NotificationBadgeContainer(
modifier = modifier.width(24.dp).height(18.dp),
modifier = modifier
.width(dimensions().spacing24x)
.height(dimensions().spacing20x),
notificationIcon = {
Image(
painter = painterResource(id = R.drawable.ic_event_badge_unread_knock),
contentDescription = null,
colorFilter = ColorFilter.tint(MaterialTheme.wireColorScheme.onBadge)
colorFilter = ColorFilter.tint(MaterialTheme.wireColorScheme.onBadge),
modifier = Modifier.height(dimensions().spacing18x)
)
}
)
Expand All @@ -122,12 +134,15 @@ fun UnreadKnockBadge(modifier: Modifier = Modifier) {
@Composable
fun ConnectRequestBadge(modifier: Modifier = Modifier) {
NotificationBadgeContainer(
modifier = modifier.width(24.dp).height(18.dp),
modifier = modifier
.width(dimensions().spacing24x)
.height(dimensions().spacing20x),
notificationIcon = {
Image(
painter = painterResource(id = R.drawable.ic_event_badge_connect_request),
contentDescription = null,
colorFilter = ColorFilter.tint(MaterialTheme.wireColorScheme.onBadge)
colorFilter = ColorFilter.tint(MaterialTheme.wireColorScheme.onBadge),
modifier = Modifier.height(dimensions().spacing18x)
)
}
)
Expand Down

0 comments on commit 073693a

Please sign in to comment.