Make cancel buttons background color in dialog transparent

This commit is contained in:
vfsfitvnm 2022-07-04 22:11:16 +02:00
parent 36bf5b17a6
commit ae00f8ea3d
2 changed files with 5 additions and 3 deletions

View file

@ -21,6 +21,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.text.TextRange
import androidx.compose.ui.text.input.ImeAction
@ -120,7 +121,7 @@ fun TextFieldDialog(
.fillMaxWidth()
) {
ChunkyButton(
backgroundColor = colorPalette.lightBackground,
backgroundColor = Color.Transparent,
text = cancelText,
textStyle = typography.xs.semiBold,
shape = RoundedCornerShape(36.dp),
@ -178,7 +179,7 @@ fun ConfirmationDialog(
.fillMaxWidth()
) {
ChunkyButton(
backgroundColor = colorPalette.lightBackground,
backgroundColor = Color.Transparent,
text = cancelText,
textStyle = typography.xs.semiBold,
shape = RoundedCornerShape(36.dp),

View file

@ -14,6 +14,7 @@ import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.BasicText
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
@ -156,7 +157,7 @@ fun PlayerSettingsScreen() {
.fillMaxWidth()
) {
ChunkyButton(
backgroundColor = colorPalette.lightBackground,
backgroundColor = Color.Transparent,
text = "Cancel",
textStyle = typography.xs.semiBold,
shape = RoundedCornerShape(36.dp),