Skip to content

Commit

Permalink
fix #26: SingleButton 컴포넌트 배경 투명하게 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Ojongseok committed Jan 19, 2024
1 parent 691f0ce commit 6abd731
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.tooling.preview.Preview
import com.tellingus.tellingme.R
Expand Down Expand Up @@ -39,9 +40,9 @@ fun SingleBlackButton(
shape = RoundedCornerShape(dimensionResource(R.dimen.button_radius)),
onClick = onClick,
colors = ButtonDefaults.buttonColors(
containerColor = Base0,
containerColor = Color.Transparent,
contentColor = Gray600,
disabledContainerColor = Base0,
disabledContainerColor = Color.Transparent,
disabledContentColor = Gray300
),
contentPadding = when(size) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.tooling.preview.Preview
import com.tellingus.tellingme.R
Expand All @@ -38,9 +39,9 @@ fun SingleButton(
shape = RoundedCornerShape(dimensionResource(R.dimen.button_radius)),
onClick = onClick,
colors = ButtonDefaults.buttonColors(
containerColor = Base0,
containerColor = Color.Transparent,
contentColor = Primary400,
disabledContainerColor = Base0,
disabledContainerColor = Color.Transparent,
disabledContentColor = Gray300
),
contentPadding = when(size) {
Expand Down

0 comments on commit 6abd731

Please sign in to comment.