Skip to content

Commit 276db31

Browse files
committed
fix: clickable alpha
1 parent 7f3c2c0 commit 276db31

File tree

1 file changed

+3
-2
lines changed
  • app/src/main/java/to/bitkit/ui/components

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import dev.chrisbanes.haze.hazeSource
4040
import dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi
4141
import dev.chrisbanes.haze.rememberHazeState
4242
import to.bitkit.R
43+
import to.bitkit.ui.shared.util.clickableAlpha
4344
import to.bitkit.ui.shared.util.gradientBackground
4445
import to.bitkit.ui.shared.util.primaryButtonStyle
4546
import to.bitkit.ui.theme.AppThemeSurface
@@ -118,7 +119,7 @@ fun BoxScope.TabBar(
118119
}
119120
}
120121

121-
// Scan button matching iOS reference
122+
// Scan button
122123
Box(
123124
contentAlignment = Alignment.Center,
124125
modifier = Modifier
@@ -178,7 +179,7 @@ fun BoxScope.TabBar(
178179
blendMode = androidx.compose.ui.graphics.BlendMode.DstIn
179180
)
180181
}
181-
.clickable { onScanClick() }
182+
.clickableAlpha { onScanClick() }
182183
.testTag("Scan")
183184
) {
184185
Icon(

0 commit comments

Comments
 (0)