refactor: Deprecate accentColor

This commit is contained in:
Christian Pauly 2021-05-24 10:59:00 +02:00
commit 1c81ac3f82
17 changed files with 60 additions and 39 deletions

View file

@ -185,7 +185,7 @@ class ChatListItem extends StatelessWidget {
style: TextStyle(
fontSize: 13,
color: room.notificationCount > 0
? Theme.of(context).accentColor
? Theme.of(context).colorScheme.secondary
: null,
),
),
@ -205,7 +205,7 @@ class ChatListItem extends StatelessWidget {
if (typingText.isNotEmpty) ...{
Icon(
Icons.edit_outlined,
color: Theme.of(context).accentColor,
color: Theme.of(context).colorScheme.secondary,
size: 14,
),
SizedBox(width: 4),
@ -215,7 +215,7 @@ class ChatListItem extends StatelessWidget {
? Text(
typingText,
style: TextStyle(
color: Theme.of(context).accentColor,
color: Theme.of(context).colorScheme.secondary,
),
softWrap: false,
)
@ -223,7 +223,7 @@ class ChatListItem extends StatelessWidget {
? Text(
L10n.of(context).youAreInvitedToThisChat,
style: TextStyle(
color: Theme.of(context).accentColor,
color: Theme.of(context).colorScheme.secondary,
),
softWrap: false,
)
@ -253,7 +253,7 @@ class ChatListItem extends StatelessWidget {
child: Icon(
Icons.push_pin_outlined,
size: 20,
color: Theme.of(context).accentColor,
color: Theme.of(context).colorScheme.secondary,
),
),
if (room.isUnread)