chore: Slightly update chat colors

This commit is contained in:
Krille 2024-10-21 18:59:39 +02:00
parent 728854569c
commit fcc43e3328
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
4 changed files with 5 additions and 12 deletions

View file

@ -308,10 +308,7 @@ class ChatView extends StatelessWidget {
alignment: Alignment.center,
child: Material(
clipBehavior: Clip.hardEdge,
color: theme
.colorScheme
// ignore: deprecated_member_use
.surfaceVariant,
color: theme.colorScheme.surfaceContainerHigh,
borderRadius: const BorderRadius.all(
Radius.circular(24),
),

View file

@ -83,8 +83,8 @@ class Message extends StatelessWidget {
final client = Matrix.of(context).client;
final ownMessage = event.senderId == client.userID;
final alignment = ownMessage ? Alignment.topRight : Alignment.topLeft;
// ignore: deprecated_member_use
var color = theme.colorScheme.surfaceVariant;
var color = theme.colorScheme.surfaceContainerHigh;
final displayTime = event.type == EventTypes.RoomCreate ||
nextEvent == null ||
!event.originServerTs.sameEnvironment(nextEvent!.originServerTs);

View file

@ -81,9 +81,7 @@ class TypingIndicators extends StatelessWidget {
),
const SizedBox(width: 8),
Material(
color:
// ignore: deprecated_member_use
theme.colorScheme.surfaceVariant,
color: theme.colorScheme.surfaceContainerHigh,
borderRadius: const BorderRadius.all(
Radius.circular(AppConfig.borderRadius),
),

View file

@ -69,9 +69,7 @@ class UserBottomSheetView extends StatelessWidget {
Padding(
padding: const EdgeInsets.all(12.0),
child: Material(
color:
// ignore: deprecated_member_use
theme.colorScheme.surfaceVariant,
color: theme.colorScheme.surfaceContainerHigh,
borderRadius:
BorderRadius.circular(AppConfig.borderRadius),
child: ListTile(