Improved dialog background code
This commit is contained in:
parent
8beebe06e4
commit
f9a2917bbd
@ -28,3 +28,5 @@ val modifyFileLight = primary
|
|||||||
|
|
||||||
val tabColorActiveDark = Color(0xFF606061)
|
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.unit.*
|
||||||
import androidx.compose.ui.window.Popup
|
import androidx.compose.ui.window.Popup
|
||||||
import androidx.compose.ui.window.PopupPositionProvider
|
import androidx.compose.ui.window.PopupPositionProvider
|
||||||
|
import app.theme.dialogBackgroundColor
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun MaterialDialog(
|
fun MaterialDialog(
|
||||||
@ -37,7 +38,7 @@ fun MaterialDialog(
|
|||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.background(Brush.horizontalGradient(listOf(Color.Black, Color.Black)), alpha = 0.8f),
|
.background(dialogBackgroundColor),
|
||||||
contentAlignment = alignment,
|
contentAlignment = alignment,
|
||||||
) {
|
) {
|
||||||
Box(
|
Box(
|
||||||
|
Loading…
Reference in New Issue
Block a user