|
@@ -30,12 +30,13 @@ import androidx.compose.ui.text.font.FontWeight
|
|
|
import androidx.compose.ui.tooling.preview.Preview
|
|
|
import androidx.compose.ui.unit.dp
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
-import io.nexilis.service.ui.RemoteView
|
|
|
|
|
|
@Composable
|
|
|
fun CallLayoutScreen() {
|
|
|
- Box(modifier = Modifier.fillMaxSize()) {
|
|
|
- RemoteView(modifier = Modifier.fillMaxSize())
|
|
|
+ Box(modifier = Modifier
|
|
|
+ .fillMaxSize()
|
|
|
+ .background(Color(0xAA1E1E1E))
|
|
|
+ ) {
|
|
|
Column(
|
|
|
modifier = Modifier
|
|
|
.fillMaxSize()
|
|
@@ -44,13 +45,8 @@ fun CallLayoutScreen() {
|
|
|
horizontalAlignment = Alignment.CenterHorizontally,
|
|
|
verticalArrangement = Arrangement.SpaceBetween
|
|
|
) {
|
|
|
- // Caller Info Section
|
|
|
CallerInfoSection()
|
|
|
-
|
|
|
- // Call Status Section
|
|
|
CallStatusSection()
|
|
|
-
|
|
|
- // Call Action Buttons Section
|
|
|
CallActionButtonsSection()
|
|
|
}
|
|
|
}
|
|
@@ -62,16 +58,13 @@ fun CallerInfoSection() {
|
|
|
horizontalAlignment = Alignment.CenterHorizontally,
|
|
|
modifier = Modifier.padding(top = 50.dp)
|
|
|
) {
|
|
|
- // Caller Avatar
|
|
|
Image(
|
|
|
- painter = rememberVectorPainter(Icons.Default.Person), // Replace with your drawable
|
|
|
+ painter = rememberVectorPainter(Icons.Default.Person),
|
|
|
contentDescription = "Caller Avatar",
|
|
|
modifier = Modifier
|
|
|
.size(120.dp)
|
|
|
.clip(CircleShape),
|
|
|
)
|
|
|
-
|
|
|
- // Caller Name
|
|
|
Text(
|
|
|
text = "John Doe",
|
|
|
color = Color.White,
|
|
@@ -100,24 +93,25 @@ fun CallActionButtonsSection() {
|
|
|
.fillMaxWidth()
|
|
|
.padding(bottom = 50.dp)
|
|
|
) {
|
|
|
- // Mute Button
|
|
|
CallActionButton(
|
|
|
- icon = Icons.Default.Mic, // Replace with your drawable
|
|
|
- onClick = { /* Handle mute action */ },
|
|
|
+ icon = Icons.Default.Mic,
|
|
|
+ onClick = {
|
|
|
+
|
|
|
+ },
|
|
|
backgroundColor = Color.Gray
|
|
|
)
|
|
|
-
|
|
|
- // Speaker Button
|
|
|
CallActionButton(
|
|
|
- icon = Icons.AutoMirrored.Filled.VolumeUp, // Replace with your drawable
|
|
|
- onClick = { /* Handle speaker action */ },
|
|
|
+ icon = Icons.AutoMirrored.Filled.VolumeUp,
|
|
|
+ onClick = {
|
|
|
+
|
|
|
+ },
|
|
|
backgroundColor = Color.Gray
|
|
|
)
|
|
|
-
|
|
|
- // End Call Button
|
|
|
CallActionButton(
|
|
|
- icon = Icons.Default.CallEnd, // Replace with your drawable
|
|
|
- onClick = { /* Handle end call action */ },
|
|
|
+ icon = Icons.Default.CallEnd,
|
|
|
+ onClick = {
|
|
|
+
|
|
|
+ },
|
|
|
backgroundColor = Color.Red
|
|
|
)
|
|
|
}
|