fix: Selected chat list item color

This commit is contained in:
Christian Pauly 2021-08-04 09:35:38 +02:00
commit 42a7175e3a
2 changed files with 13 additions and 20 deletions

View file

@ -209,18 +209,6 @@ abstract class FluffyThemes {
),
);
static Color chatListItemColor(
BuildContext context, bool activeChat, bool selected) =>
selected
? Theme.of(context).primaryColor.withAlpha(100)
: Theme.of(context).brightness == Brightness.light
? activeChat
? Color(0xFFE8E8E8)
: Colors.white
: activeChat
? Color(0xff121212)
: Colors.black;
static Color blackWhiteColor(BuildContext context) =>
Theme.of(context).brightness == Brightness.light
? Colors.white