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, alignment: Alignment.center,
child: Material( child: Material(
clipBehavior: Clip.hardEdge, clipBehavior: Clip.hardEdge,
color: accountConfig.wallpaperUrl != null color: theme.colorScheme.surfaceContainerHigh,
? theme.colorScheme.surfaceBright
: theme.colorScheme.surfaceContainerHigh,
borderRadius: const BorderRadius.all( borderRadius: const BorderRadius.all(
Radius.circular(24), Radius.circular(24),
), ),

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

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

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

Loading…
Cancel
Save