Skip to content

Commit

Permalink
Merge branch 'kim/refactor/captureModes/captureMode_Ui' into kim/refa…
Browse files Browse the repository at this point in the history
…ctor/captureModes/captureButton
  • Loading branch information
Kimblebee committed Feb 4, 2025
2 parents 433121f + 7602114 commit a94835a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.gestures.rememberTransformableState
import androidx.compose.foundation.gestures.transformable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints
Expand Down Expand Up @@ -745,7 +746,12 @@ fun CaptureModeDropDown(
// this text displays the current selection
Box(
modifier = Modifier
.clickable { isExpanded = !isExpanded }
.clickable(
interactionSource = remember { MutableInteractionSource() },
// removes the greyish background animation that appears when clicking on a clickable
indication = null,
onClick = { isExpanded = !isExpanded }
)
.padding(8.dp)
) {
Text(
Expand Down

0 comments on commit a94835a

Please # to comment.