From 9f87094b34b8f460c7a8d5f965ebc1a19b4220ff Mon Sep 17 00:00:00 2001 From: Heller Date: Thu, 18 Jun 2026 23:56:21 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B2=D0=BE=D1=81=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB=20ripple=20=D0=BD=D0=B0=20=D1=86?= =?UTF-8?q?=D0=B8=D1=84=D1=80=D0=BE=D0=B2=D1=8B=D1=85=20=D0=BA=D0=BD=D0=BE?= =?UTF-8?q?=D0=BF=D0=BA=D0=B0=D1=85=20=D0=B1=D0=B5=D0=B7=20=D1=81=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D1=86=D0=B2=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .../calculator/ui/components/CalculatorButton.kt | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/com/heller/calculator/ui/components/CalculatorButton.kt b/app/src/main/java/com/heller/calculator/ui/components/CalculatorButton.kt index 0622b8f..acb62e3 100644 --- a/app/src/main/java/com/heller/calculator/ui/components/CalculatorButton.kt +++ b/app/src/main/java/com/heller/calculator/ui/components/CalculatorButton.kt @@ -1,8 +1,6 @@ package com.heller.calculator.ui.components import androidx.compose.foundation.BorderStroke -import androidx.compose.foundation.clickable -import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.shape.RoundedCornerShape @@ -12,10 +10,8 @@ import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.material3.Text import androidx.compose.runtime.Composable -import androidx.compose.runtime.remember import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier -import androidx.compose.ui.draw.clip import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp @@ -69,13 +65,8 @@ fun CalculatorButton( if (type == CalculatorButtonType.Digit) { Surface( - modifier = modifier - .clip(shape) - .clickable( - interactionSource = remember { MutableInteractionSource() }, - indication = null, - onClick = onClick, - ), + onClick = onClick, + modifier = modifier, shape = shape, color = containerColor, shadowElevation = 2.dp,