From ad8d71534c64b98036446412bd0c5e89d5ce82e1 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 4 Feb 2023 15:37:32 -0500 Subject: [PATCH] Make icons squircle. Fixes #301 (#307) --- .../main/java/com/jerboa/ui/components/common/PictrsImage.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/jerboa/ui/components/common/PictrsImage.kt b/app/src/main/java/com/jerboa/ui/components/common/PictrsImage.kt index 3bb6938b2..597be68cc 100644 --- a/app/src/main/java/com/jerboa/ui/components/common/PictrsImage.kt +++ b/app/src/main/java/com/jerboa/ui/components/common/PictrsImage.kt @@ -10,7 +10,6 @@ import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.size -import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.MaterialTheme import androidx.compose.material3.OutlinedButton @@ -62,7 +61,7 @@ fun CircularIcon( contentScale = ContentScale.Crop, modifier = modifier .size(size) - .clip(CircleShape) + .clip(RoundedCornerShape(12f)) ) }