Skip to content

Commit

Permalink
[FEAT]#111: Textfield 원복
Browse files Browse the repository at this point in the history
  • Loading branch information
flash159483 committed Aug 19, 2024
1 parent 4a22876 commit 6defef6
Showing 1 changed file with 10 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package com.bff.wespot.designsystem.component.input

import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
Expand All @@ -29,7 +26,6 @@ import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.FocusState
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.focus.onFocusChanged
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
Expand All @@ -38,6 +34,7 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.bff.wespot.designsystem.R
import com.bff.wespot.designsystem.theme.Gray400
import com.bff.wespot.designsystem.theme.Primary400
import com.bff.wespot.designsystem.theme.StaticTypeScale
import com.bff.wespot.designsystem.theme.WeSpotTheme
import com.bff.wespot.designsystem.theme.WeSpotThemeManager
Expand Down Expand Up @@ -65,15 +62,7 @@ fun WsTextField(
}
}

Box(
modifier = Modifier
.wrapContentSize()
.border(
BorderStroke(1.dp, WeSpotThemeManager.colors.primaryColor),
shape = WeSpotThemeManager.shapes.small,
)
.padding(1.dp),
) {
Box(modifier = Modifier.wrapContentSize()) {
OutlinedTextField(
modifier = Modifier
.heightIn(
Expand Down Expand Up @@ -126,12 +115,16 @@ fun WsTextField(
unfocusedContainerColor = WeSpotThemeManager.colors.cardBackgroundColor,
focusedPlaceholderColor = WeSpotThemeManager.colors.disableBtnTxtColor,
unfocusedPlaceholderColor = WeSpotThemeManager.colors.disableBtnTxtColor,
focusedBorderColor = Color.Transparent,
unfocusedBorderColor = Color.Transparent,
focusedBorderColor = if (textFieldType == WsTextFieldType.Message) {
WeSpotThemeManager.colors.cardBackgroundColor
} else {
Primary400
},
unfocusedBorderColor = WeSpotThemeManager.colors.cardBackgroundColor,
disabledContainerColor = WeSpotThemeManager.colors.cardBackgroundColor,
disabledPlaceholderColor = Gray400,
disabledBorderColor = Color.Transparent,
errorBorderColor = Color.Transparent,
disabledBorderColor = WeSpotThemeManager.colors.cardBackgroundColor,
errorBorderColor = WeSpotThemeManager.colors.dangerColor,
errorContainerColor = WeSpotThemeManager.colors.cardBackgroundColor,
errorPlaceholderColor = WeSpotThemeManager.colors.disableBtnTxtColor,
),
Expand Down

0 comments on commit 6defef6

Please sign in to comment.