From 7bfbd37b76428259a4adf13525f828e3ba972055 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 27 Jul 2024 19:52:22 +0800 Subject: [PATCH] :bug: Fix attachment fullscreen in dark mode --- lib/widgets/attachments/attachment_list_fullscreen.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/widgets/attachments/attachment_list_fullscreen.dart b/lib/widgets/attachments/attachment_list_fullscreen.dart index 1a40dea..e69116e 100644 --- a/lib/widgets/attachments/attachment_list_fullscreen.dart +++ b/lib/widgets/attachments/attachment_list_fullscreen.dart @@ -93,11 +93,14 @@ class _AttachmentListFullScreenState extends State { child: IgnorePointer( child: Container( height: 300, - decoration: const BoxDecoration( + decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment.bottomCenter, end: Alignment.topCenter, - colors: [Color(0xFFFFFFFF), Color(0x00FFFFFF)], + colors: [ + Theme.of(context).colorScheme.surface, + Theme.of(context).colorScheme.surface.withOpacity(0), + ], ), ), ),