Improve API of UnreadIndicatorAtom
This commit is contained in:
parent
349d9fbc0f
commit
8cb0e0808c
4 changed files with 4 additions and 11 deletions
|
|
@ -37,12 +37,13 @@ fun UnreadIndicatorAtom(
|
|||
modifier: Modifier = Modifier,
|
||||
size: Dp = 12.dp,
|
||||
color: Color = ElementTheme.colors.unreadIndicator,
|
||||
isVisible: Boolean = true,
|
||||
) {
|
||||
Box(
|
||||
modifier = modifier
|
||||
.size(size)
|
||||
.clip(CircleShape)
|
||||
.background(color)
|
||||
.background(if (isVisible) color else Color.Transparent)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue