Improved dialog background code
This commit is contained in:
parent
8beebe06e4
commit
f9a2917bbd
@ -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)
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user