From e4a9d40fa1d3e0a536fd74cc6755c606b77ebdcb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 13 Jan 2024 11:01:29 +0100 Subject: [PATCH] Preview AvatarEmpty at different font scales --- .../java/eu/steffo/twom/composables/avatar/AvatarEmpty.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/steffo/twom/composables/avatar/AvatarEmpty.kt b/app/src/main/java/eu/steffo/twom/composables/avatar/AvatarEmpty.kt index ec632e4..22e7487 100644 --- a/app/src/main/java/eu/steffo/twom/composables/avatar/AvatarEmpty.kt +++ b/app/src/main/java/eu/steffo/twom/composables/avatar/AvatarEmpty.kt @@ -11,7 +11,9 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.tooling.preview.Preview @Composable -@Preview(widthDp = 40, heightDp = 40) +@Preview(name = "Regular", widthDp = 40, heightDp = 40) +@Preview(name = "Double font scale", widthDp = 40, heightDp = 40, fontScale = 2f) +@Preview(name = "Quadruple font scale", widthDp = 40, heightDp = 40, fontScale = 4f) fun AvatarEmpty( modifier: Modifier = Modifier, text: String? = null,