fix: Update tint and text colors in OtherProfileMenu and OtherProfileScreen for better visibility

This commit is contained in:
k1ngsterr1
2026-01-22 20:56:19 +05:00
parent 4e2e6d1259
commit 6fdad7a4c1
2 changed files with 6 additions and 5 deletions

View File

@@ -796,7 +796,7 @@ fun OtherProfileMenu(
icon = if (isBlocked) Icons.Default.CheckCircle else Icons.Default.Block,
text = if (isBlocked) "Unblock User" else "Block User",
onClick = onBlockClick,
tintColor = if (isDarkTheme) Color.White else Color.Black,
tintColor = PrimaryBlue,
textColor = if (isDarkTheme) Color.White else Color.Black
)
@@ -812,8 +812,8 @@ fun OtherProfileMenu(
icon = Icons.Default.Delete,
text = "Clear Chat History",
onClick = onClearChatClick,
tintColor = if (isDarkTheme) Color.White else Color.Black,
textColor = if (isDarkTheme) Color.White else Color.Black
tintColor = Color(0xFFFF3B30),
textColor = Color(0xFFFF3B30)
)
}
}

View File

@@ -15,6 +15,7 @@ import androidx.compose.material.icons.filled.MoreVert
import androidx.compose.material.icons.outlined.Block
import androidx.compose.material3.*
import androidx.compose.runtime.*
import com.rosetta.messenger.ui.onboarding.PrimaryBlue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
@@ -339,7 +340,7 @@ private fun CollapsingOtherProfileHeader(
Text(
text = "online",
fontSize = onlineFontSize,
color = if (isDarkTheme) Color.White.copy(alpha = 0.6f) else Color.Black.copy(alpha = 0.5f)
color = Color(0xFF4CAF50)
)
}
}
@@ -355,7 +356,7 @@ private fun TelegramBlockItem(
isDarkTheme: Boolean
) {
val textColor = if (isDarkTheme) Color.White else Color.Black
val iconColor = if (isDarkTheme) Color.White else Color.Black
val iconColor = PrimaryBlue
Row(
modifier = Modifier