feat: updates activity message colors (#1620)

pull/1593/head
ggurdin 9 months ago committed by GitHub
parent 37253130f9
commit 1add21d69b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -36,7 +36,9 @@ class ActivityPlanMessage extends StatelessWidget {
}); });
final theme = Theme.of(context); 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 textColor = ThemeData.light().colorScheme.onPrimary;
final displayEvent = event.getDisplayEvent(timeline); final displayEvent = event.getDisplayEvent(timeline);

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

Loading…
Cancel
Save