Use `DialogSurface` for `SleepTimerCustomAlertDialog`
This commit is contained in:
parent
057cfefb64
commit
17ac263c5d
|
@ -6,7 +6,6 @@ import androidx.compose.material3.*
|
|||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.dimensionResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.input.KeyboardType
|
||||
|
@ -15,10 +14,7 @@ import com.simplemobiletools.commons.compose.alert_dialog.AlertDialogState
|
|||
import com.simplemobiletools.commons.compose.alert_dialog.rememberAlertDialogState
|
||||
import com.simplemobiletools.commons.compose.extensions.MyDevices
|
||||
import com.simplemobiletools.commons.compose.theme.AppThemeSurface
|
||||
import com.simplemobiletools.commons.dialogs.dialogBorder
|
||||
import com.simplemobiletools.commons.dialogs.dialogContainerColor
|
||||
import com.simplemobiletools.commons.dialogs.dialogElevation
|
||||
import com.simplemobiletools.commons.dialogs.dialogShape
|
||||
import com.simplemobiletools.commons.dialogs.DialogSurface
|
||||
|
||||
private val items = listOf(
|
||||
R.string.minutes_raw,
|
||||
|
@ -32,20 +28,14 @@ fun SleepTimerCustomAlertDialog(
|
|||
onConfirmClick: (seconds: Int) -> Unit,
|
||||
onCancelClick: () -> Unit = {}
|
||||
) {
|
||||
val context = LocalContext.current
|
||||
var selectedItem by remember { mutableIntStateOf(0) }
|
||||
var value by remember { mutableStateOf("") }
|
||||
|
||||
AlertDialog(
|
||||
modifier = modifier
|
||||
.dialogBorder,
|
||||
onDismissRequest = alertDialogState::hide
|
||||
) {
|
||||
Surface(
|
||||
modifier = modifier,
|
||||
shape = dialogShape,
|
||||
color = dialogContainerColor,
|
||||
tonalElevation = dialogElevation,
|
||||
DialogSurface(
|
||||
modifier = modifier
|
||||
) {
|
||||
Column(
|
||||
modifier = Modifier.padding(all = dimensionResource(id = R.dimen.big_margin))
|
||||
|
|
|
@ -6,7 +6,7 @@ androidx-customView = "1.2.0-alpha02"
|
|||
androidx-customViewPooling = "1.0.0"
|
||||
androidx-lifecycle = "2.7.0-alpha02"
|
||||
#Simple tools
|
||||
simple-commons = "ffe7d33846"
|
||||
simple-commons = "b72ded2a75"
|
||||
#Compose
|
||||
composeActivity = "1.8.0-rc01"
|
||||
compose = "1.6.0-alpha06"
|
||||
|
|
Loading…
Reference in New Issue