瀏覽代碼

Update gallery load screen

vishnukvmd 3 年之前
父節點
當前提交
78bcc86912
共有 2 個文件被更改,包括 26 次插入11 次删除
  1. 1 1
      lib/ente_theme_data.dart
  2. 25 10
      lib/ui/loading_photos_widget.dart

+ 1 - 1
lib/ente_theme_data.dart

@@ -55,7 +55,7 @@ extension CustomColorScheme on ColorScheme {
       ? Colors.white
       : Color.fromRGBO(10, 15, 15, 1.0);
 
-  Color get greenText => Color.fromRGBO(40, 190, 92, 1);
+  Color get greenText => Color.fromARGB(255, 40, 190, 113);
 
   Color get cupertinoPickerTopColor => brightness == Brightness.light
       ? Color.fromARGB(255, 238, 238, 238)

+ 25 - 10
lib/ui/loading_photos_widget.dart

@@ -28,10 +28,10 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
     "We have preserved over 3 million memories so far",
     "All our apps are open source",
     "Our encryption protocols have been reviewed by engineers at Google, Apple, Amazon, and Facebook",
-    "You can share files and folders with your loved ones, end-to-end encrypted",
+    "You can share links to your albums with your loved ones",
     "Our mobile apps run in the background to encrypt and backup new photos you take",
     "We use Xchacha20Poly1305 to safely encrypt your data",
-    "One of our data centers is in a fall out shelter 25m underground",
+    "One of our data centers is in an underground fall out shelter in Paris",
   ];
 
   @override
@@ -79,6 +79,8 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
 
   @override
   Widget build(BuildContext context) {
+    final isLightMode =
+        MediaQuery.of(context).platformBrightness == Brightness.light;
     return Scaffold(
       body: Center(
         child: Padding(
@@ -88,20 +90,33 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
             mainAxisAlignment: MainAxisAlignment.spaceEvenly,
             children: [
               Stack(alignment: Alignment.center, children: [
-                Image.asset(MediaQuery.of(context).platformBrightness ==
-                        Brightness.light
-                    ? 'assets/loading_photos_light.png'
-                    : 'assets/loading_photos_dark.png'),
-                Lottie.asset('assets/loadingGalleryLottie.json', height: 300)
+                isLightMode
+                    ? Image.asset(
+                        'assets/loading_photos_light.png',
+                        color: Colors.white.withOpacity(0.5),
+                        colorBlendMode: BlendMode.modulate,
+                      )
+                    : Image.asset(
+                        'assets/loading_photos_light.png',
+                        color: Colors.white.withOpacity(0.25),
+                        colorBlendMode: BlendMode.modulate,
+                      ),
+                Lottie.asset(
+                  'assets/loadingGalleryLottie.json',
+                  height: 400,
+                )
               ]),
               Column(
                 children: [
                   Row(
                     mainAxisAlignment: MainAxisAlignment.start,
                     children: [
-                      Text("Did you know?",
-                          style: Theme.of(context).textTheme.headline6.copyWith(
-                              color: Theme.of(context).colorScheme.greenText)),
+                      Text(
+                        "Did you know?",
+                        style: Theme.of(context).textTheme.headline6.copyWith(
+                              color: Theme.of(context).colorScheme.greenText,
+                            ),
+                      ),
                     ],
                   ),
                   const SizedBox(