mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-04 11:09:29 +01:00
fix: display name contrast in dark mode
This commit is contained in:
parent
918acb9beb
commit
a309cb78ac
@ -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),
|
||||
),
|
||||
);
|
||||
}),
|
||||
|
@ -24,6 +24,6 @@ extension StringColor on String {
|
||||
|
||||
Color get lightColor {
|
||||
_colorCache[this] ??= {};
|
||||
return _colorCache[this]![0.4] ??= _getColorLight(0.4);
|
||||
return _colorCache[this]![0.7] ??= _getColorLight(0.7);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user