Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(auth): update splash screen

Prateek Sunal4040525a4ca6
diff --git a/auth/android/app/src/main/res/drawable-hdpi/splash.png b/auth/android/app/src/main/res/drawable-hdpi/splash.png
index 9bb1e2aeec..a257c36f07 100644
Binary files a/auth/android/app/src/main/res/drawable-hdpi/splash.png and b/auth/android/app/src/main/res/drawable-hdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-mdpi/splash.png b/auth/android/app/src/main/res/drawable-mdpi/splash.png
index 2d83d16291..97a79069fb 100644
Binary files a/auth/android/app/src/main/res/drawable-mdpi/splash.png and b/auth/android/app/src/main/res/drawable-mdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-hdpi/android12splash.png b/auth/android/app/src/main/res/drawable-night-hdpi/android12splash.png
index 494139b926..43d836b9bd 100644
Binary files a/auth/android/app/src/main/res/drawable-night-hdpi/android12splash.png and b/auth/android/app/src/main/res/drawable-night-hdpi/android12splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-hdpi/splash.png b/auth/android/app/src/main/res/drawable-night-hdpi/splash.png
new file mode 100644
index 0000000000..9bb1e2aeec
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-night-hdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-mdpi/android12splash.png b/auth/android/app/src/main/res/drawable-night-mdpi/android12splash.png
index f9048fefbd..63dc1e4cd7 100644
Binary files a/auth/android/app/src/main/res/drawable-night-mdpi/android12splash.png and b/auth/android/app/src/main/res/drawable-night-mdpi/android12splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-mdpi/splash.png b/auth/android/app/src/main/res/drawable-night-mdpi/splash.png
new file mode 100644
index 0000000000..2d83d16291
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-night-mdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-v21/background.png b/auth/android/app/src/main/res/drawable-night-v21/background.png
new file mode 100644
index 0000000000..71e9c817e8
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-night-v21/background.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-xhdpi/android12splash.png b/auth/android/app/src/main/res/drawable-night-xhdpi/android12splash.png
index 0ea61e2fe1..517cfc7e75 100644
Binary files a/auth/android/app/src/main/res/drawable-night-xhdpi/android12splash.png and b/auth/android/app/src/main/res/drawable-night-xhdpi/android12splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-xhdpi/splash.png b/auth/android/app/src/main/res/drawable-night-xhdpi/splash.png
new file mode 100644
index 0000000000..e7caec0b3b
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-night-xhdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png b/auth/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png
index 666c9c7a84..587eca970c 100644
Binary files a/auth/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png and b/auth/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-xxhdpi/splash.png b/auth/android/app/src/main/res/drawable-night-xxhdpi/splash.png
new file mode 100644
index 0000000000..ad77a8b1fd
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-night-xxhdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png b/auth/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png
index 6da9d045fa..dedb623d33 100644
Binary files a/auth/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png and b/auth/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night-xxxhdpi/splash.png b/auth/android/app/src/main/res/drawable-night-xxxhdpi/splash.png
new file mode 100644
index 0000000000..9bf76a941d
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-night-xxxhdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-night/background.png b/auth/android/app/src/main/res/drawable-night/background.png
new file mode 100644
index 0000000000..71e9c817e8
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-night/background.png differ
diff --git a/auth/android/app/src/main/res/drawable-v21/background.png b/auth/android/app/src/main/res/drawable-v21/background.png
index 370fb3c793..3107d37fa5 100644
Binary files a/auth/android/app/src/main/res/drawable-v21/background.png and b/auth/android/app/src/main/res/drawable-v21/background.png differ
diff --git a/auth/android/app/src/main/res/drawable-xhdpi/splash.png b/auth/android/app/src/main/res/drawable-xhdpi/splash.png
index e7caec0b3b..2f39c95d5c 100644
Binary files a/auth/android/app/src/main/res/drawable-xhdpi/splash.png and b/auth/android/app/src/main/res/drawable-xhdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-xxhdpi/splash.png b/auth/android/app/src/main/res/drawable-xxhdpi/splash.png
index ad77a8b1fd..a5ea320a95 100644
Binary files a/auth/android/app/src/main/res/drawable-xxhdpi/splash.png and b/auth/android/app/src/main/res/drawable-xxhdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable-xxxhdpi/splash.png b/auth/android/app/src/main/res/drawable-xxxhdpi/splash.png
index 9bf76a941d..3e7ef4620b 100644
Binary files a/auth/android/app/src/main/res/drawable-xxxhdpi/splash.png and b/auth/android/app/src/main/res/drawable-xxxhdpi/splash.png differ
diff --git a/auth/android/app/src/main/res/drawable/background.png b/auth/android/app/src/main/res/drawable/background.png
index 370fb3c793..3107d37fa5 100644
Binary files a/auth/android/app/src/main/res/drawable/background.png and b/auth/android/app/src/main/res/drawable/background.png differ
diff --git a/auth/android/app/src/main/res/values-night-v31/styles.xml b/auth/android/app/src/main/res/values-night-v31/styles.xml
index d840be93ac..c4a573dfe2 100644
--- a/auth/android/app/src/main/res/values-night-v31/styles.xml
+++ b/auth/android/app/src/main/res/values-night-v31/styles.xml
@@ -6,7 +6,7 @@
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
- <item name="android:windowSplashScreenBackground">#12001B</item>
+ <item name="android:windowSplashScreenBackground">#000000</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
diff --git a/auth/android/app/src/main/res/values-v31/styles.xml b/auth/android/app/src/main/res/values-v31/styles.xml
index 2b3ccb4733..dbdf6f9053 100644
--- a/auth/android/app/src/main/res/values-v31/styles.xml
+++ b/auth/android/app/src/main/res/values-v31/styles.xml
@@ -6,7 +6,7 @@
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
- <item name="android:windowSplashScreenBackground">#F1D6FF</item>
+ <item name="android:windowSplashScreenBackground">#FFFFFF</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
diff --git a/auth/assets/splash/splash-bg.png b/auth/assets/splash/splash-bg.png
deleted file mode 100644
index 370fb3c793..0000000000
Binary files a/auth/assets/splash/splash-bg.png and /dev/null differ
diff --git a/auth/assets/splash/splash-icon-fg-light.png b/auth/assets/splash/splash-icon-fg-light.png
new file mode 100644
index 0000000000..801839c211
Binary files /dev/null and b/auth/assets/splash/splash-icon-fg-light.png differ
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json b/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json
index 9f447e1b38..8bb185b107 100644
--- a/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json
+++ b/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json
@@ -2,16 +2,17 @@
"images" : [
{
"filename" : "background.png",
- "idiom" : "universal",
- "scale" : "1x"
+ "idiom" : "universal"
},
{
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "idiom" : "universal",
- "scale" : "3x"
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "darkbackground.png",
+ "idiom" : "universal"
}
],
"info" : {
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png b/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png
index 370fb3c793..3107d37fa5 100644
Binary files a/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png and b/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png differ
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png b/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png
new file mode 100644
index 0000000000..71e9c817e8
Binary files /dev/null and b/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png differ
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
index 00cabce836..f3387d4ae7 100644
--- a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
+++ b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -5,15 +5,48 @@
"idiom" : "universal",
"scale" : "1x"
},
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "LaunchImageDark.png",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
}
],
"info" : {
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
index 2d83d16291..97a79069fb 100644
Binary files a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
index e7caec0b3b..2f39c95d5c 100644
Binary files a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] and b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] differ
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
index ad77a8b1fd..a5ea320a95 100644
Binary files a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] and b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] differ
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImageDark.png b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImageDark.png
new file mode 100644
index 0000000000..2d83d16291
Binary files /dev/null and b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImageDark.png differ
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
new file mode 100644
index 0000000000..e7caec0b3b
Binary files /dev/null and b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] differ
diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
new file mode 100644
index 0000000000..ad77a8b1fd
Binary files /dev/null and b/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] differ
diff --git a/auth/pubspec.yaml b/auth/pubspec.yaml
index 02a6826e57..b924da0470 100644
--- a/auth/pubspec.yaml
+++ b/auth/pubspec.yaml
@@ -153,8 +153,10 @@ flutter_icons:
remove_alpha_ios: true
flutter_native_splash:
- background_image: assets/splash/splash-bg.png
- image: assets/splash/splash-icon-fg.png
+ color: "#FFFFFF"
+ color_dark: "#000000"
+ image: "assets/splash/splash-icon-fg-light.png"
+ image_dark: "assets/splash/splash-icon-fg.png"
android_gravity: center
ios_content_mode: center
android_12:
@@ -165,10 +167,10 @@ flutter_native_splash:
# 640 pixels in diameter.
# App icon without an icon background: This should be 1152Γ—1152 pixels, and fit within a circle
# 768 pixels in diameter.
- image: assets/splash/splash-fg.png
+ image: "assets/splash/splash-fg.png"
# Splash screen background color.
- color: "#F1D6FF"
+ color: "#FFFFFF"
# App icon background color.
#icon_background_color: "#111111"
@@ -179,6 +181,6 @@ flutter_native_splash:
# The image_dark, color_dark, icon_background_color_dark, and branding_dark set values that
# apply when the device is in dark mode. If they are not specified, the app will use the
# parameters from above.
- #image_dark: assets/android12splash-invert.png
- color_dark: "#12001B"
+ image_dark: "assets/generation-icons/icon-light.png"
+ color_dark: "#000000"
#icon_background_color_dark: "#eeeeee"
diff --git a/auth/web/index.html b/auth/web/index.html
index faceb4e9ba..c2c5f5d5dc 100644
--- a/auth/web/index.html
+++ b/auth/web/index.html
@@ -32,6 +32,8 @@
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
+
+
<style id="splash-screen-style">
html {
height: 100%
@@ -40,9 +42,8 @@
body {
margin: 0;
min-height: 100%;
- background-color: #ffffff;
- background-image: url("splash/img/light-background.png");
- background-size: 100% 100%;
+ background-color: #FFFFFF;
+ background-size: 100% 100%;
}
.center {
@@ -90,6 +91,12 @@
bottom: 0;
right: 0;
}
+
+ @media (prefers-color-scheme: dark) {
+ body {
+ background-color: #000000;
+ }
+ }
</style>
<script id="splash-screen-script">
function removeSplashFromWeb() {
@@ -107,6 +114,7 @@
<img class="center" aria-hidden="true" src="splash/img/light-1x.png" alt="">
</picture>
+
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
diff --git a/auth/web/splash/img/light-1x.png b/auth/web/splash/img/light-1x.png
index 2d83d16291..97a79069fb 100644
Binary files a/auth/web/splash/img/light-1x.png and b/auth/web/splash/img/light-1x.png differ
diff --git a/auth/web/splash/img/light-2x.png b/auth/web/splash/img/light-2x.png
index e7caec0b3b..2f39c95d5c 100644
Binary files a/auth/web/splash/img/light-2x.png and b/auth/web/splash/img/light-2x.png differ
diff --git a/auth/web/splash/img/light-3x.png b/auth/web/splash/img/light-3x.png
index ad77a8b1fd..a5ea320a95 100644
Binary files a/auth/web/splash/img/light-3x.png and b/auth/web/splash/img/light-3x.png differ
diff --git a/auth/web/splash/img/light-4x.png b/auth/web/splash/img/light-4x.png
index 9bf76a941d..3e7ef4620b 100644
Binary files a/auth/web/splash/img/light-4x.png and b/auth/web/splash/img/light-4x.png differ
diff --git a/auth/web/splash/img/light-background.png b/auth/web/splash/img/light-background.png
deleted file mode 100644
index 370fb3c793..0000000000
Binary files a/auth/web/splash/img/light-background.png and /dev/null differ