fix: display name contrast in dark mode

This commit is contained in:
Gabriel Rodríguez 2023-01-29 09:57:59 -05:00 committed by Krille
commit 704ee5ef9c
2 changed files with 5 additions and 2 deletions

View file

@ -165,7 +165,10 @@ class Message extends StatelessWidget {
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
color: displayname.color,
color: (Theme.of(context).brightness ==
Brightness.light
? displayname.color
: displayname.lightColor),
),
);
}),