feat: updates activity message colors (#1620)
This commit is contained in:
parent
37253130f9
commit
1add21d69b
2 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue