Quellcode durchsuchen

Update gallery load screen

vishnukvmd vor 3 Jahren
Ursprung
Commit
78bcc86912
2 geänderte Dateien mit 26 neuen und 11 gelöschten Zeilen
  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
       ? Colors.white
       : Color.fromRGBO(10, 15, 15, 1.0);
       : 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 get cupertinoPickerTopColor => brightness == Brightness.light
       ? Color.fromARGB(255, 238, 238, 238)
       ? 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",
     "We have preserved over 3 million memories so far",
     "All our apps are open source",
     "All our apps are open source",
     "Our encryption protocols have been reviewed by engineers at Google, Apple, Amazon, and Facebook",
     "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",
     "Our mobile apps run in the background to encrypt and backup new photos you take",
     "We use Xchacha20Poly1305 to safely encrypt your data",
     "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
   @override
@@ -79,6 +79,8 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
 
 
   @override
   @override
   Widget build(BuildContext context) {
   Widget build(BuildContext context) {
+    final isLightMode =
+        MediaQuery.of(context).platformBrightness == Brightness.light;
     return Scaffold(
     return Scaffold(
       body: Center(
       body: Center(
         child: Padding(
         child: Padding(
@@ -88,20 +90,33 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
             mainAxisAlignment: MainAxisAlignment.spaceEvenly,
             mainAxisAlignment: MainAxisAlignment.spaceEvenly,
             children: [
             children: [
               Stack(alignment: Alignment.center, 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(
               Column(
                 children: [
                 children: [
                   Row(
                   Row(
                     mainAxisAlignment: MainAxisAlignment.start,
                     mainAxisAlignment: MainAxisAlignment.start,
                     children: [
                     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(
                   const SizedBox(