Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Soften viewer gradients

aspizu557678e1b430
diff --git a/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart b/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart
index c85940f2a0..1891a937a0 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart
@@ -1018,10 +1018,12 @@ class _GalleryFileViewerBottomOverlay extends StatelessWidget {
end: Alignment.bottomCenter,
colors: [
Colors.transparent,
+ Colors.black.withValues(alpha: 0.025),
+ Colors.black.withValues(alpha: 0.05),
Colors.black.withValues(alpha: 0.6),
Colors.black.withValues(alpha: 0.72),
],
- stops: const [0, 0.8, 1],
+ stops: const [0, 0.05, 0.1, 0.8, 1],
),
),
),
diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
index 477a9d9038..663ae7950b 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
@@ -191,9 +191,11 @@ class FileAppBarState extends State<FileAppBar> {
colors: [
Colors.black.withValues(alpha: 0.72),
Colors.black.withValues(alpha: 0.6),
+ Colors.black.withValues(alpha: 0.05),
+ Colors.black.withValues(alpha: 0.025),
Colors.transparent,
],
- stops: const [0, 0.2, 1],
+ stops: const [0, 0.2, 0.9, 0.95, 1],
),
),
child: SafeArea(
diff --git a/mobile/apps/photos/lib/ui/viewer/file/video_control/gallery_video_controls.dart b/mobile/apps/photos/lib/ui/viewer/file/video_control/gallery_video_controls.dart
index a9b4295645..6ff4289897 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/video_control/gallery_video_controls.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/video_control/gallery_video_controls.dart
@@ -156,10 +156,12 @@ class VideoBottomScrim extends StatelessWidget {
end: Alignment.bottomCenter,
colors: [
Colors.transparent,
+ Colors.black.withValues(alpha: 0.025),
+ Colors.black.withValues(alpha: 0.05),
Colors.black.withValues(alpha: 0.6),
Colors.black.withValues(alpha: 0.72),
],
- stops: const [0, 0.8, 1],
+ stops: const [0, 0.05, 0.1, 0.8, 1],
),
),
),