fix: Update color scheme for profile menus and headers based on theme
This commit is contained in:
@@ -764,7 +764,7 @@ fun ProfilePhotoMenu(
|
||||
icon = Icons.Default.AddAPhoto,
|
||||
text = "Set Profile Photo",
|
||||
onClick = onSetPhotoClick,
|
||||
tintColor = PrimaryBlue,
|
||||
tintColor = if (isDarkTheme) Color.White else Color.Black,
|
||||
textColor = if (isDarkTheme) Color.White else Color.Black
|
||||
)
|
||||
}
|
||||
@@ -796,8 +796,8 @@ fun OtherProfileMenu(
|
||||
icon = if (isBlocked) Icons.Default.CheckCircle else Icons.Default.Block,
|
||||
text = if (isBlocked) "Unblock User" else "Block User",
|
||||
onClick = onBlockClick,
|
||||
tintColor = if (isBlocked) Color(0xFF4CAF50) else Color(0xFFFF3B30),
|
||||
textColor = if (isBlocked) Color(0xFF4CAF50) else Color(0xFFFF3B30)
|
||||
tintColor = if (isDarkTheme) Color.White else Color.Black,
|
||||
textColor = if (isDarkTheme) Color.White else Color.Black
|
||||
)
|
||||
|
||||
Box(
|
||||
@@ -812,8 +812,8 @@ fun OtherProfileMenu(
|
||||
icon = Icons.Default.Delete,
|
||||
text = "Clear Chat History",
|
||||
onClick = onClearChatClick,
|
||||
tintColor = Color(0xFFFF3B30),
|
||||
textColor = Color(0xFFFF3B30)
|
||||
tintColor = if (isDarkTheme) Color.White else Color.Black,
|
||||
textColor = if (isDarkTheme) Color.White else Color.Black
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ private fun CollapsingOtherProfileHeader(
|
||||
Text(
|
||||
text = "online",
|
||||
fontSize = onlineFontSize,
|
||||
color = Color(0xFF4CAF50)
|
||||
color = if (isDarkTheme) Color.White.copy(alpha = 0.6f) else Color.Black.copy(alpha = 0.5f)
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -355,11 +355,7 @@ private fun TelegramBlockItem(
|
||||
isDarkTheme: Boolean
|
||||
) {
|
||||
val textColor = if (isDarkTheme) Color.White else Color.Black
|
||||
val iconColor = if (isBlocked) {
|
||||
if (isDarkTheme) Color(0xFF66BB6A) else Color(0xFF4CAF50)
|
||||
} else {
|
||||
if (isDarkTheme) Color(0xFFFF8787) else Color(0xFFEF4444)
|
||||
}
|
||||
val iconColor = if (isDarkTheme) Color.White else Color.Black
|
||||
|
||||
Row(
|
||||
modifier = Modifier
|
||||
|
||||
Reference in New Issue
Block a user