change (room avatar) : add preview for TombstonedRoomAvatar

This commit is contained in:
ganfra 2025-06-18 12:29:47 +02:00
parent 3cf236907b
commit 780339c584

View file

@ -12,8 +12,12 @@ import androidx.compose.foundation.shape.CircleShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import io.element.android.compound.theme.AvatarColors
import io.element.android.compound.theme.ElementTheme
import io.element.android.libraries.designsystem.preview.ElementPreview
import io.element.android.libraries.designsystem.preview.PreviewGroup
@Composable
fun TombstonedRoomAvatar(
@ -34,3 +38,12 @@ fun TombstonedRoomAvatar(
contentDescription = contentDescription
)
}
@Preview(group = PreviewGroup.Avatars)
@Composable
internal fun TombstonedRoomAvatarPreview() = ElementPreview {
TombstonedRoomAvatar(
size = AvatarSize.RoomListItem,
contentDescription = null,
)
}