Improved transfer dialog coloring
This commit is contained in:
@ -83,6 +83,8 @@ import androidx.compose.material.icons.outlined.Clear
|
|||||||
import androidx.compose.material3.AlertDialogDefaults
|
import androidx.compose.material3.AlertDialogDefaults
|
||||||
import androidx.compose.material3.BasicAlertDialog
|
import androidx.compose.material3.BasicAlertDialog
|
||||||
import androidx.compose.material3.ButtonColors
|
import androidx.compose.material3.ButtonColors
|
||||||
|
import androidx.compose.material3.Card
|
||||||
|
import androidx.compose.material3.CardDefaults
|
||||||
import androidx.compose.material3.DropdownMenuItem
|
import androidx.compose.material3.DropdownMenuItem
|
||||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||||
import androidx.compose.material3.ExposedDropdownMenuDefaults.outlinedTextFieldColors
|
import androidx.compose.material3.ExposedDropdownMenuDefaults.outlinedTextFieldColors
|
||||||
@ -1251,20 +1253,20 @@ class MainActivity : ComponentActivity() {
|
|||||||
showTransferDialog = false
|
showTransferDialog = false
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
Surface(
|
Card(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.wrapContentWidth()
|
.fillMaxWidth()
|
||||||
.wrapContentHeight(),
|
.padding(top = 16.dp, start = 16.dp, end = 16.dp, bottom = 0.dp),
|
||||||
color = LocalCustomColors.current.grayLight,
|
shape = RoundedCornerShape(16.dp),
|
||||||
shape = MaterialTheme.shapes.large,
|
colors = CardDefaults.cardColors(
|
||||||
tonalElevation = AlertDialogDefaults.TonalElevation
|
containerColor = LocalCustomColors.current.cardBackground
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
Column(modifier = Modifier.padding(16.dp)) {
|
Column(modifier = Modifier.padding(16.dp)) {
|
||||||
Text(
|
androidx.compose.material3.Text(
|
||||||
text = ContextCompat.getString(ctx, R.string.call_transfer),
|
text = stringResource(R.string.call_transfer),
|
||||||
fontSize = 20.sp,
|
fontSize = 20.sp,
|
||||||
modifier = Modifier.padding(16.dp),
|
color = LocalCustomColors.current.alert,
|
||||||
color = LocalCustomColors.current.primary,
|
|
||||||
)
|
)
|
||||||
var transferUri by remember { mutableStateOf("") }
|
var transferUri by remember { mutableStateOf("") }
|
||||||
val suggestions by remember { contactNames }
|
val suggestions by remember { contactNames }
|
||||||
@ -1309,7 +1311,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
label = { LabelText(stringResource(R.string.transfer_destination)) },
|
label = { LabelText(stringResource(R.string.transfer_destination)) },
|
||||||
textStyle = TextStyle(
|
textStyle = TextStyle(
|
||||||
fontSize = 18.sp,
|
fontSize = 18.sp,
|
||||||
color = LocalCustomColors.current.dark
|
color = LocalCustomColors.current.itemText
|
||||||
),
|
),
|
||||||
keyboardOptions = if (dialpad)
|
keyboardOptions = if (dialpad)
|
||||||
KeyboardOptions(keyboardType = KeyboardType.Phone)
|
KeyboardOptions(keyboardType = KeyboardType.Phone)
|
||||||
@ -1357,7 +1359,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
Text(
|
Text(
|
||||||
text = suggestion,
|
text = suggestion,
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
color = LocalCustomColors.current.grayDark,
|
color = LocalCustomColors.current.itemText,
|
||||||
fontSize = 18.sp
|
fontSize = 18.sp
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -1374,7 +1376,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
text = ContextCompat.getString(ctx, R.string.blind),
|
text = ContextCompat.getString(ctx, R.string.blind),
|
||||||
color = LocalCustomColors.current.dark,
|
color = LocalCustomColors.current.alert,
|
||||||
modifier = Modifier.padding(16.dp),
|
modifier = Modifier.padding(16.dp),
|
||||||
)
|
)
|
||||||
Checkbox(
|
Checkbox(
|
||||||
@ -1384,7 +1386,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
}
|
}
|
||||||
Text(
|
Text(
|
||||||
text = ContextCompat.getString(ctx, R.string.attended),
|
text = ContextCompat.getString(ctx, R.string.attended),
|
||||||
color = LocalCustomColors.current.dark,
|
color = LocalCustomColors.current.alert,
|
||||||
modifier = Modifier.padding(16.dp),
|
modifier = Modifier.padding(16.dp),
|
||||||
)
|
)
|
||||||
Checkbox(
|
Checkbox(
|
||||||
|
|||||||
Reference in New Issue
Block a user