Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix bg color for thumbnail widget within video widget

Neeraj Guptafdebe2443b1d
diff --git a/mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart b/mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart
index 2d975cf7e5..ce7ed371c3 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart
@@ -621,9 +621,13 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>
return Stack(
key: const ValueKey("video_loading"),
children: [
- _getThumbnail(),
Container(
- color: Colors.black12,
+ color: Colors.black,
+ constraints: const BoxConstraints.expand(),
+ child: _getThumbnail(),
+ ),
+ Container(
+ color: Colors.black.withValues(alpha: 0.3),
constraints: const BoxConstraints.expand(),
),
Center(
@@ -678,14 +682,11 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>
}
Widget _getThumbnail() {
- return Container(
- color: Colors.black,
- constraints: const BoxConstraints.expand(),
- child: ThumbnailWidget(
- widget.file,
- fit: BoxFit.contain,
- shouldShowVideoOverlayIcon: false,
- ),
+ return ThumbnailWidget(
+ widget.file,
+ fit: BoxFit.contain,
+ shouldShowVideoOverlayIcon: false,
+ rawThumbnail: true,
);
}
diff --git a/mobile/apps/photos/scripts/internal_changes.txt b/mobile/apps/photos/scripts/internal_changes.txt
index 1c5b493bd0..004f5acfd6 100644
--- a/mobile/apps/photos/scripts/internal_changes.txt
+++ b/mobile/apps/photos/scripts/internal_changes.txt
@@ -1,3 +1,4 @@
+- Neeraj: Fix thumbnail bg in native video player widget
- Ashil: Fix full screen state getting disabled when swiping to video
- Ashil: Remove long-press icon to switch to media kit player
- Neeraj & Laurens: fix OCR iOS issues and remove feature flag