From 8d6df8a9e067b54e9367b8f57fc186c84158974b Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Thu, 23 Jun 2022 13:32:07 +0200 Subject: [PATCH] Added color around dialogs to improve contrast --- src/main/kotlin/app/ui/dialogs/MaterialDialog.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/app/ui/dialogs/MaterialDialog.kt b/src/main/kotlin/app/ui/dialogs/MaterialDialog.kt index 10220c7..ea623df 100644 --- a/src/main/kotlin/app/ui/dialogs/MaterialDialog.kt +++ b/src/main/kotlin/app/ui/dialogs/MaterialDialog.kt @@ -3,6 +3,7 @@ package app.ui.dialogs import androidx.compose.foundation.background +import androidx.compose.foundation.border import androidx.compose.foundation.focusable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize @@ -25,6 +26,7 @@ import androidx.compose.ui.unit.* import androidx.compose.ui.window.Popup import androidx.compose.ui.window.PopupPositionProvider import app.theme.dialogOverlay +import app.theme.primaryTextColor @Composable fun MaterialDialog( @@ -69,7 +71,8 @@ fun MaterialDialog( ) { Box( modifier = Modifier - .clip(RoundedCornerShape(15.dp)) + .border(1.dp, MaterialTheme.colors.onBackground.copy(alpha = 0.1f), RoundedCornerShape(16.dp)) + .clip(RoundedCornerShape(16.dp)) .background(MaterialTheme.colors.background) .padding( horizontal = paddingHorizontal,