Improved dialog background code

This commit is contained in:
Abdelilah El Aissaoui 2021-12-04 04:24:59 +01:00
parent 8beebe06e4
commit f9a2917bbd
2 changed files with 5 additions and 2 deletions

View File

@ -27,4 +27,6 @@ val deleteFileLight = errorColor
val modifyFileLight = primary
val tabColorActiveDark = Color(0xFF606061)
val tabColorInactiveDark = Color(0xFF262626)
val tabColorInactiveDark = Color(0xFF262626)
val dialogBackgroundColor = Color(0xAA000000)

View File

@ -17,6 +17,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.*
import androidx.compose.ui.window.Popup
import androidx.compose.ui.window.PopupPositionProvider
import app.theme.dialogBackgroundColor
@Composable
fun MaterialDialog(
@ -37,7 +38,7 @@ fun MaterialDialog(
Box(
modifier = Modifier
.fillMaxSize()
.background(Brush.horizontalGradient(listOf(Color.Black, Color.Black)), alpha = 0.8f),
.background(dialogBackgroundColor),
contentAlignment = alignment,
) {
Box(