From 23bcb3c41d62245c7cf110f15c7ab53c3545acf2 Mon Sep 17 00:00:00 2001 From: jhg3410 Date: Sun, 22 Sep 2024 02:33:48 +0900 Subject: [PATCH] =?UTF-8?q?MONEYMONG-508=20feat:=20MDSNavigationBar=20?= =?UTF-8?q?=EA=B7=B8=EB=A6=BC=EC=9E=90=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/navigation/NavigationBar.kt | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/core/design-system/src/main/java/com/moneymong/moneymong/design_system/component/navigation/NavigationBar.kt b/core/design-system/src/main/java/com/moneymong/moneymong/design_system/component/navigation/NavigationBar.kt index 0909c1b2..b86c1ba4 100644 --- a/core/design-system/src/main/java/com/moneymong/moneymong/design_system/component/navigation/NavigationBar.kt +++ b/core/design-system/src/main/java/com/moneymong/moneymong/design_system/component/navigation/NavigationBar.kt @@ -1,6 +1,5 @@ package com.moneymong.moneymong.design_system.component.navigation -import android.graphics.BlurMaskFilter import androidx.annotation.DrawableRes import androidx.compose.foundation.background import androidx.compose.foundation.interaction.MutableInteractionSource @@ -22,9 +21,6 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.drawBehind import androidx.compose.ui.geometry.Offset -import androidx.compose.ui.graphics.Paint -import androidx.compose.ui.graphics.drawscope.drawIntoCanvas -import androidx.compose.ui.graphics.toArgb import androidx.compose.ui.res.painterResource import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp @@ -33,7 +29,6 @@ import com.moneymong.moneymong.design_system.component.navigation.MDSNavigationB import com.moneymong.moneymong.design_system.component.navigation.MDSNavigationBarItemDefaults.selectedLabelColor import com.moneymong.moneymong.design_system.component.navigation.MDSNavigationBarItemDefaults.unSelectedIconColor import com.moneymong.moneymong.design_system.component.navigation.MDSNavigationBarItemDefaults.unSelectedLabelColor -import com.moneymong.moneymong.design_system.theme.Black import com.moneymong.moneymong.design_system.theme.Blue04 import com.moneymong.moneymong.design_system.theme.Body2 import com.moneymong.moneymong.design_system.theme.Gray02 @@ -49,7 +44,6 @@ fun MDSNavigationBar( modifier = modifier .fillMaxWidth() .navigationBarsPadding() - .navigationBarShadow() .background(color = White) .drawBehind { val strokeWidth = 1.dp.toPx() @@ -66,32 +60,6 @@ fun MDSNavigationBar( ) } -private fun Modifier.navigationBarShadow(): Modifier { - val shadowOffsetY = (-4).dp - val shadowBlurRadius = 8.dp - val shadowColor = Black.copy(alpha = 0.04f).toArgb() - - return this.drawBehind { - drawIntoCanvas { canvas -> - val paint = Paint() - val frameworkPaint = paint.asFrameworkPaint() - frameworkPaint.color = shadowColor - frameworkPaint.maskFilter = BlurMaskFilter( - shadowBlurRadius.toPx(), - BlurMaskFilter.Blur.NORMAL - ) - - canvas.drawRect( - left = 0f, - top = shadowOffsetY.toPx(), - right = size.width, - bottom = size.height + shadowOffsetY.toPx(), - paint = paint - ) - } - } -} - @Composable fun RowScope.MDSNavigationBarItem(