chore: Follow up design

pull/1457/head
krille-chan 4 months ago
parent 812a1c047e
commit da857d6abe
No known key found for this signature in database

@ -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),
),

@ -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,
),
],
),

@ -256,10 +256,8 @@ class SettingsStyleView extends StatelessWidget {
bottom: 12,
),
child: Material(
color: accountConfig.wallpaperUrl == null
? theme
.colorScheme.surfaceContainerHighest
: theme.colorScheme.surfaceBright,
color:
theme.colorScheme.surfaceContainerHigh,
borderRadius: BorderRadius.circular(
AppConfig.borderRadius,
),

@ -140,7 +140,7 @@ class _MxcImageState extends State<MxcImage> {
return AnimatedCrossFade(
crossFadeState:
hasData ? CrossFadeState.showSecond : CrossFadeState.showFirst,
duration: FluffyThemes.animationDuration,
duration: const Duration(milliseconds: 128),
firstChild: placeholder(context),
secondChild: hasData
? Image.memory(

Loading…
Cancel
Save