Skip to content

Commit ed7b611

Browse files
committed
chore: lint
1 parent 89de8d2 commit ed7b611

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ private const val GLOW_ANIMATION_MILLIS = 1200
4343
@Composable
4444
fun ActivityBanner(
4545
modifier: Modifier = Modifier,
46+
onClick: (() -> Unit)? = null,
4647
gradientColor: Color,
4748
title: String,
4849
@DrawableRes icon: Int,
49-
onClick: (() -> Unit)? = null,
5050
) {
51-
5251
val infiniteTransition = rememberInfiniteTransition(label = "glow")
5352

5453
val innerShadowOpacity by infiniteTransition.animateFloat(
@@ -72,7 +71,7 @@ fun ActivityBanner(
7271
)
7372

7473
val radialGradientOpacity by infiniteTransition.animateFloat(
75-
initialValue = 0.6f, // Increased from 0.4f for more prominent glow
74+
initialValue = 0.6f,
7675
targetValue = 0.0f,
7776
animationSpec = infiniteRepeatable(
7877
animation = tween(durationMillis = GLOW_ANIMATION_MILLIS),
@@ -116,8 +115,8 @@ fun ActivityBanner(
116115
.background(
117116
brush = Brush.radialGradient(
118117
colors = listOf(
119-
Color.Transparent, // Transparent center
120-
gradientColor.copy(alpha = innerShadowOpacity) // Full opacity for more visible glow
118+
Color.Transparent,
119+
gradientColor.copy(alpha = innerShadowOpacity)
121120
),
122121
radius = 400f
123122
)
@@ -126,7 +125,7 @@ fun ActivityBanner(
126125
.background(
127126
brush = Brush.verticalGradient(
128127
colors = listOf(
129-
gradientColor.copy(alpha = 0.32f), // Increased from 0.24f for more visibility
128+
gradientColor.copy(alpha = 0.32f),
130129
gradientColor.copy(alpha = 0f)
131130
)
132131
)

app/src/main/java/to/bitkit/ui/shared/util/Modifiers.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,18 @@ fun Modifier.outerGlow(
140140

141141
drawIntoCanvas { canvas ->
142142
val paint = Paint().apply {
143-
color = glowColor.copy(alpha = 0f) // Transparent fill
143+
color = glowColor.copy(alpha = 0f) // Transparent fill
144144
isAntiAlias = true
145145
}
146146

147147
// Draw blurred shadow behind the component
148148
val frameworkPaint = paint.asFrameworkPaint()
149149
frameworkPaint.color = glowColor.copy(alpha = 0f).toArgb()
150150
frameworkPaint.setShadowLayer(
151-
glowRadiusPx, // Blur radius
152-
0f, // X offset
153-
0f, // Y offset
154-
glowColor.copy(alpha = glowOpacity).toArgb() // Shadow color with animated opacity
151+
glowRadiusPx,
152+
0f,
153+
0f,
154+
glowColor.copy(alpha = glowOpacity).toArgb()
155155
)
156156

157157
canvas.drawRoundRect(

0 commit comments

Comments
 (0)