Revert "feat: Add default chat wallpaper"

This reverts commit 7d8369ab30.
This commit is contained in:
Krille 2024-10-21 16:36:26 +02:00
commit 4857684655
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
7 changed files with 29 additions and 47 deletions

View file

@ -260,30 +260,18 @@ class ChatView extends StatelessWidget {
onDragExited: controller.onDragExited,
child: Stack(
children: <Widget>[
accountConfig.wallpaperUrl != null
? Opacity(
opacity: accountConfig.wallpaperOpacity ?? 1,
child: MxcImage(
uri: accountConfig.wallpaperUrl,
fit: BoxFit.cover,
isThumbnail: true,
width: FluffyThemes.columnWidth * 4,
height: FluffyThemes.columnWidth * 4,
placeholder: (_) => Container(),
),
)
: ColorFiltered(
colorFilter: ColorFilter.mode(
theme.colorScheme.surfaceContainerHighest,
BlendMode.color,
),
child: Image.asset(
'assets/chat_wallpaper_${theme.brightness.name}.png',
fit: BoxFit.cover,
width: double.infinity,
height: double.infinity,
),
),
if (accountConfig.wallpaperUrl != null)
Opacity(
opacity: accountConfig.wallpaperOpacity ?? 1,
child: MxcImage(
uri: accountConfig.wallpaperUrl,
fit: BoxFit.cover,
isThumbnail: true,
width: FluffyThemes.columnWidth * 4,
height: FluffyThemes.columnWidth * 4,
placeholder: (_) => Container(),
),
),
SafeArea(
child: Column(
children: <Widget>[
@ -320,7 +308,10 @@ class ChatView extends StatelessWidget {
alignment: Alignment.center,
child: Material(
clipBehavior: Clip.hardEdge,
color: theme.colorScheme.surfaceBright,
color: theme
.colorScheme
// ignore: deprecated_member_use
.surfaceVariant,
borderRadius: const BorderRadius.all(
Radius.circular(24),
),