chore: Follow up design

This commit is contained in:
krille-chan 2024-11-03 12:51:22 +01:00
commit da857d6abe
No known key found for this signature in database
4 changed files with 9 additions and 17 deletions

View file

@ -304,9 +304,7 @@ class ChatView extends StatelessWidget {
alignment: Alignment.center,
child: Material(
clipBehavior: Clip.hardEdge,
color: accountConfig.wallpaperUrl != null
? theme.colorScheme.surfaceBright
: theme.colorScheme.surfaceContainerHigh,
color: theme.colorScheme.surfaceContainerHigh,
borderRadius: const BorderRadius.all(
Radius.circular(24),
),

View file

@ -84,9 +84,7 @@ class Message extends StatelessWidget {
final ownMessage = event.senderId == client.userID;
final alignment = ownMessage ? Alignment.topRight : Alignment.topLeft;
var color = wallpaperMode
? theme.colorScheme.surfaceBright
: theme.colorScheme.surfaceContainerHigh;
var color = theme.colorScheme.surfaceContainerHigh;
final displayTime = event.type == EventTypes.RoomCreate ||
nextEvent == null ||
!event.originServerTs.sameEnvironment(nextEvent!.originServerTs);
@ -270,15 +268,13 @@ class Message extends StatelessWidget {
shadows: !wallpaperMode
? null
: [
Shadow(
offset: const Offset(
const Shadow(
offset: Offset(
0.0,
0.0,
),
blurRadius: 5,
color: theme
.colorScheme
.surface,
blurRadius: 3,
color: Colors.black,
),
],
),