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,
|
icon = Icons.Default.AddAPhoto,
|
||||||
text = "Set Profile Photo",
|
text = "Set Profile Photo",
|
||||||
onClick = onSetPhotoClick,
|
onClick = onSetPhotoClick,
|
||||||
tintColor = PrimaryBlue,
|
tintColor = if (isDarkTheme) Color.White else Color.Black,
|
||||||
textColor = 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,
|
icon = if (isBlocked) Icons.Default.CheckCircle else Icons.Default.Block,
|
||||||
text = if (isBlocked) "Unblock User" else "Block User",
|
text = if (isBlocked) "Unblock User" else "Block User",
|
||||||
onClick = onBlockClick,
|
onClick = onBlockClick,
|
||||||
tintColor = if (isBlocked) Color(0xFF4CAF50) else Color(0xFFFF3B30),
|
tintColor = if (isDarkTheme) Color.White else Color.Black,
|
||||||
textColor = if (isBlocked) Color(0xFF4CAF50) else Color(0xFFFF3B30)
|
textColor = if (isDarkTheme) Color.White else Color.Black
|
||||||
)
|
)
|
||||||
|
|
||||||
Box(
|
Box(
|
||||||
@@ -812,8 +812,8 @@ fun OtherProfileMenu(
|
|||||||
icon = Icons.Default.Delete,
|
icon = Icons.Default.Delete,
|
||||||
text = "Clear Chat History",
|
text = "Clear Chat History",
|
||||||
onClick = onClearChatClick,
|
onClick = onClearChatClick,
|
||||||
tintColor = Color(0xFFFF3B30),
|
tintColor = if (isDarkTheme) Color.White else Color.Black,
|
||||||
textColor = Color(0xFFFF3B30)
|
textColor = if (isDarkTheme) Color.White else Color.Black
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ private fun CollapsingOtherProfileHeader(
|
|||||||
Text(
|
Text(
|
||||||
text = "online",
|
text = "online",
|
||||||
fontSize = onlineFontSize,
|
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
|
isDarkTheme: Boolean
|
||||||
) {
|
) {
|
||||||
val textColor = if (isDarkTheme) Color.White else Color.Black
|
val textColor = if (isDarkTheme) Color.White else Color.Black
|
||||||
val iconColor = if (isBlocked) {
|
val iconColor = if (isDarkTheme) Color.White else Color.Black
|
||||||
if (isDarkTheme) Color(0xFF66BB6A) else Color(0xFF4CAF50)
|
|
||||||
} else {
|
|
||||||
if (isDarkTheme) Color(0xFFFF8787) else Color(0xFFEF4444)
|
|
||||||
}
|
|
||||||
|
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|||||||
Reference in New Issue
Block a user