Skip to content

Commit 0c669fd

Browse files
committed
feat: radial card border
1 parent cd2273b commit 0c669fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/to/bitkit/ui/components/SuggestionCard.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import androidx.compose.animation.core.infiniteRepeatable
77
import androidx.compose.animation.core.rememberInfiniteTransition
88
import androidx.compose.animation.core.tween
99
import androidx.compose.foundation.Image
10+
import androidx.compose.foundation.border
1011
import androidx.compose.foundation.layout.Arrangement
1112
import androidx.compose.foundation.layout.Box
1213
import androidx.compose.foundation.layout.Column
@@ -86,7 +87,9 @@ fun SuggestionCard(
8687
if (isDismissible) {
8788
Modifier.gradientLinearBackground(gradientColor)
8889
} else {
89-
Modifier.gradientRadialBackground(gradientColor, glowAlpha)
90+
Modifier
91+
.gradientRadialBackground(gradientColor, glowAlpha)
92+
.border(width = 1.dp, color = gradientColor, shape = ShapeDefaults.Large)
9093
}
9194
)
9295
.clickableAlpha { onClick() }

0 commit comments

Comments
 (0)