From ae00f8ea3d1727b73920420f640158c8b0c09026 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Mon, 4 Jul 2022 22:11:16 +0200 Subject: [PATCH] Make cancel buttons background color in dialog transparent --- .../it/vfsfitvnm/vimusic/ui/components/themed/Dialog.kt | 5 +++-- .../vimusic/ui/screens/settings/PlayerSettingsScreen.kt | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/themed/Dialog.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/themed/Dialog.kt index 73076a2..a90c916 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/themed/Dialog.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/themed/Dialog.kt @@ -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), diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/PlayerSettingsScreen.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/PlayerSettingsScreen.kt index 8697ee8..60dcb46 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/PlayerSettingsScreen.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/PlayerSettingsScreen.kt @@ -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),