feat: updates activity message colors (#1620)

This commit is contained in:
ggurdin 2025-01-28 11:16:50 -05:00 committed by GitHub
parent 37253130f9
commit 1add21d69b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -36,7 +36,9 @@ class ActivityPlanMessage extends StatelessWidget {
});
final theme = Theme.of(context);
final color = ThemeData.dark().colorScheme.onSecondary;
final color = theme.brightness == Brightness.dark
? theme.colorScheme.onSecondary
: theme.colorScheme.primary;
final textColor = ThemeData.light().colorScheme.onPrimary;
final displayEvent = event.getDisplayEvent(timeline);

View file

@ -90,7 +90,9 @@ class OverlayMessage extends StatelessWidget {
}
if (event.isActivityMessage) {
color = ThemeData.dark().colorScheme.onSecondary;
color = theme.brightness == Brightness.dark
? theme.colorScheme.onSecondary
: theme.colorScheme.primary;
}
final noBubble = {