Make cancel buttons background color in dialog transparent
This commit is contained in:
@@ -21,6 +21,7 @@ import androidx.compose.ui.Modifier
|
|||||||
import androidx.compose.ui.draw.clip
|
import androidx.compose.ui.draw.clip
|
||||||
import androidx.compose.ui.focus.FocusRequester
|
import androidx.compose.ui.focus.FocusRequester
|
||||||
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.graphics.SolidColor
|
||||||
import androidx.compose.ui.text.TextRange
|
import androidx.compose.ui.text.TextRange
|
||||||
import androidx.compose.ui.text.input.ImeAction
|
import androidx.compose.ui.text.input.ImeAction
|
||||||
@@ -120,7 +121,7 @@ fun TextFieldDialog(
|
|||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
) {
|
) {
|
||||||
ChunkyButton(
|
ChunkyButton(
|
||||||
backgroundColor = colorPalette.lightBackground,
|
backgroundColor = Color.Transparent,
|
||||||
text = cancelText,
|
text = cancelText,
|
||||||
textStyle = typography.xs.semiBold,
|
textStyle = typography.xs.semiBold,
|
||||||
shape = RoundedCornerShape(36.dp),
|
shape = RoundedCornerShape(36.dp),
|
||||||
@@ -178,7 +179,7 @@ fun ConfirmationDialog(
|
|||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
) {
|
) {
|
||||||
ChunkyButton(
|
ChunkyButton(
|
||||||
backgroundColor = colorPalette.lightBackground,
|
backgroundColor = Color.Transparent,
|
||||||
text = cancelText,
|
text = cancelText,
|
||||||
textStyle = typography.xs.semiBold,
|
textStyle = typography.xs.semiBold,
|
||||||
shape = RoundedCornerShape(36.dp),
|
shape = RoundedCornerShape(36.dp),
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import androidx.compose.foundation.shape.RoundedCornerShape
|
|||||||
import androidx.compose.foundation.text.BasicText
|
import androidx.compose.foundation.text.BasicText
|
||||||
import androidx.compose.runtime.*
|
import androidx.compose.runtime.*
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.graphics.ColorFilter
|
import androidx.compose.ui.graphics.ColorFilter
|
||||||
import androidx.compose.ui.platform.LocalContext
|
import androidx.compose.ui.platform.LocalContext
|
||||||
import androidx.compose.ui.res.painterResource
|
import androidx.compose.ui.res.painterResource
|
||||||
@@ -156,7 +157,7 @@ fun PlayerSettingsScreen() {
|
|||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
) {
|
) {
|
||||||
ChunkyButton(
|
ChunkyButton(
|
||||||
backgroundColor = colorPalette.lightBackground,
|
backgroundColor = Color.Transparent,
|
||||||
text = "Cancel",
|
text = "Cancel",
|
||||||
textStyle = typography.xs.semiBold,
|
textStyle = typography.xs.semiBold,
|
||||||
shape = RoundedCornerShape(36.dp),
|
shape = RoundedCornerShape(36.dp),
|
||||||
|
|||||||
Reference in New Issue
Block a user