refactor: Deprecate accentColor
This commit is contained in:
parent
ca161ce47a
commit
1c81ac3f82
17 changed files with 60 additions and 39 deletions
|
|
@ -98,7 +98,7 @@ class _ContactListTile extends StatelessWidget {
|
|||
subtitle: Text(contact.getLocalizedStatusMessage(context),
|
||||
style: contact.presence.statusMsg?.isNotEmpty ?? false
|
||||
? TextStyle(
|
||||
color: Theme.of(context).accentColor,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
fontWeight: FontWeight.bold,
|
||||
)
|
||||
: null),
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class HtmlMessage extends StatelessWidget {
|
|||
emoteSize: emoteSize,
|
||||
linkStyle: linkStyle ??
|
||||
themeData.textTheme.bodyText2.copyWith(
|
||||
color: themeData.accentColor,
|
||||
color: themeData.colorScheme.secondary,
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
shrinkToFit: true,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class OnePageCard extends StatelessWidget {
|
|||
colors: [
|
||||
Theme.of(context).secondaryHeaderColor.withAlpha(alpha),
|
||||
Theme.of(context).primaryColor.withAlpha(alpha),
|
||||
Theme.of(context).accentColor.withAlpha(alpha),
|
||||
Theme.of(context).colorScheme.secondary.withAlpha(alpha),
|
||||
Theme.of(context).backgroundColor.withAlpha(alpha),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class _LockScreenState extends State<LockScreen> {
|
|||
colors: [
|
||||
Theme.of(context).secondaryHeaderColor.withAlpha(16),
|
||||
Theme.of(context).primaryColor.withAlpha(16),
|
||||
Theme.of(context).accentColor.withAlpha(16),
|
||||
Theme.of(context).colorScheme.secondary.withAlpha(16),
|
||||
Theme.of(context).backgroundColor.withAlpha(16),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue