Merge pull request #2874 from pangeachat/replied-name-readable

Make replied message senders name readable on light background
This commit is contained in:
ggurdin 2025-05-22 13:47:09 -04:00 committed by GitHub
commit 5a8747d17b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,10 +32,16 @@ class ReplyContent extends StatelessWidget {
timeline != null ? replyEvent.getDisplayEvent(timeline) : replyEvent;
final fontSize = AppConfig.messageFontSize * AppConfig.fontSizeFactor;
final color = theme.brightness == Brightness.dark
? theme.colorScheme.onTertiaryContainer
: ownMessage
// Pangea#
? ownMessage
? theme.colorScheme.tertiaryContainer
: theme.colorScheme.tertiary;
: theme.colorScheme.onTertiaryContainer
: theme.colorScheme.tertiary;
// ? theme.colorScheme.onTertiaryContainer
// : ownMessage
// ? theme.colorScheme.tertiaryContainer
// : theme.colorScheme.tertiary;
// Pangea#
return Material(
color: Colors.transparent,
@ -69,7 +75,9 @@ class ReplyContent extends StatelessWidget {
fontWeight: FontWeight.bold,
// #Pangea
// color: color,
color: theme.colorScheme.onSurface,
color: ownMessage && theme.brightness == Brightness.dark
? theme.colorScheme.tertiaryContainer
: theme.colorScheme.onSurface,
// Pangea#
fontSize: fontSize,
),