This commit is contained in:
callebtc
2025-07-10 00:29:22 +02:00
parent efbdf8c6ff
commit 472c6e8d51
2 changed files with 40 additions and 18 deletions
@@ -215,11 +215,22 @@ private fun PrivateChatHeader(
),
contentPadding = PaddingValues(horizontal = 12.dp, vertical = 4.dp)
) {
Text(
text = "← back",
style = MaterialTheme.typography.bodyMedium,
color = colorScheme.primary
)
Row(
verticalAlignment = Alignment.CenterVertically
) {
Icon(
imageVector = Icons.Filled.ArrowBack,
contentDescription = "Back",
modifier = Modifier.size(16.dp),
tint = colorScheme.primary
)
Spacer(modifier = Modifier.width(4.dp))
Text(
text = "back",
style = MaterialTheme.typography.bodyMedium,
color = colorScheme.primary
)
}
}
Spacer(modifier = Modifier.weight(1f))
@@ -268,11 +279,22 @@ private fun ChannelHeader(
verticalAlignment = Alignment.CenterVertically
) {
IconButton(onClick = onBackClick) {
Text(
text = "← back",
style = MaterialTheme.typography.bodyMedium,
color = colorScheme.primary
)
Row(
verticalAlignment = Alignment.CenterVertically
) {
Icon(
imageVector = Icons.Filled.ArrowBack,
contentDescription = "Back",
modifier = Modifier.size(16.dp),
tint = colorScheme.primary
)
Spacer(modifier = Modifier.width(4.dp))
Text(
text = "back",
style = MaterialTheme.typography.bodyMedium,
color = colorScheme.primary
)
}
}
Spacer(modifier = Modifier.weight(1f))
@@ -7,6 +7,8 @@ import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
@@ -97,20 +99,18 @@ fun MessageInput(
),
contentAlignment = Alignment.Center
) {
Text(
text = "",
style = MaterialTheme.typography.titleMedium.copy(
fontSize = 20.sp,
fontWeight = FontWeight.Bold
),
color = if (selectedPrivatePeer != null) {
Icon(
imageVector = Icons.Filled.KeyboardArrowUp,
contentDescription = "Send message",
modifier = Modifier.size(20.dp),
tint = if (selectedPrivatePeer != null) {
// Black arrow on orange in private mode
Color.Black
} else if (colorScheme.background == Color.Black) {
Color.Black // Black arrow on bright green in dark theme
} else {
Color.White // White arrow on dark green in light theme
},
}
)
}
}