[widgets] fix color contrast on display names on messages in dark mode
This commit is contained in:
parent
71c33dde2e
commit
c493b98a04
1 changed files with 4 additions and 1 deletions
|
|
@ -242,7 +242,10 @@ class _MetaRow extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 11 * AppConfig.fontSizeFactor,
|
fontSize: 11 * AppConfig.fontSizeFactor,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: displayname.color.withAlpha(200),
|
color: (Theme.of(context).brightness == Brightness.light
|
||||||
|
? displayname.darkColor
|
||||||
|
: displayname.lightColor)
|
||||||
|
.withAlpha(200),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (showDisplayname) SizedBox(width: 4),
|
if (showDisplayname) SizedBox(width: 4),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue