From 9b5c62fd3fca5a5826a32fdb3d751a88e42f0528 Mon Sep 17 00:00:00 2001 From: Manel Martos Date: Thu, 26 Oct 2023 17:49:12 +0100 Subject: [PATCH] Fix detekt issues --- .../livemosaic/participant/DroidconHalloweenSpecial.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/shared/src/commonMain/kotlin/com/bumble/livemosaic/participant/DroidconHalloweenSpecial.kt b/shared/src/commonMain/kotlin/com/bumble/livemosaic/participant/DroidconHalloweenSpecial.kt index b756736e..67cd4886 100644 --- a/shared/src/commonMain/kotlin/com/bumble/livemosaic/participant/DroidconHalloweenSpecial.kt +++ b/shared/src/commonMain/kotlin/com/bumble/livemosaic/participant/DroidconHalloweenSpecial.kt @@ -40,7 +40,10 @@ private const val TEXT_COLOR_SECONDARY = 0xFFF36F21 private const val BACKGROUND_GRADIENT_OFFSET = 0.4f @Composable -fun DroidconLondonHalloweenSpecial() { + +fun DroidconLondonHalloweenSpecial( + modifier: Modifier = Modifier, +) { val infiniteTransition = rememberInfiniteTransition() @@ -55,7 +58,7 @@ fun DroidconLondonHalloweenSpecial() { ) ) Column( - modifier = Modifier + modifier = modifier .fillMaxSize() .background( brush = Brush.verticalGradient( @@ -93,6 +96,7 @@ fun DroidconLondonHalloweenSpecial() { } } +@Suppress("MagicNumber") fun Modifier.rotatingGradientFill(rotation: Float, brush: Brush) = graphicsLayer(alpha = 0.99f) .drawWithCache {