Skip to content

armgit / ente

Public Imported from GitHub
0

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

[auth] Fix android monochrome app icon (#5484)

Bl4ckspellae6e2b1349e1
diff --git a/auth/android/.gitignore b/auth/android/.gitignore
index 6f568019d3..27f7aec949 100644
--- a/auth/android/.gitignore
+++ b/auth/android/.gitignore
@@ -5,6 +5,8 @@ gradle-wrapper.jar
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
+/app/.cxx/
+/.kotlin/
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
diff --git a/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png b/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000000..e7a02039d7
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png differ
diff --git a/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png b/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000000..163a39ab80
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png differ
diff --git a/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png b/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000000..accaf7e863
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png differ
diff --git a/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png b/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000000..acdcc6084a
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png differ
diff --git a/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png b/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000000..1372853943
Binary files /dev/null and b/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png differ
diff --git a/auth/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml b/auth/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml
index 28f41b3c4d..407dab1e31 100644
--- a/auth/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml
+++ b/auth/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml
@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
- <foreground android:drawable="@drawable/ic_launcher_foreground"/>
- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>
+ <foreground>
+ <inset
+ android:drawable="@drawable/ic_launcher_foreground"
+ android:inset="0%" />
+ </foreground>
+ <monochrome>
+ <inset
+ android:drawable="@drawable/ic_launcher_monochrome"
+ android:inset="0%" />
+ </monochrome>
</adaptive-icon>
diff --git a/auth/assets/generation-icons/icon-monochrome.png b/auth/assets/generation-icons/icon-monochrome.png
new file mode 100644
index 0000000000..83413a6580
Binary files /dev/null and b/auth/assets/generation-icons/icon-monochrome.png differ
diff --git a/auth/pubspec.yaml b/auth/pubspec.yaml
index 8e874214c9..02d1488bb4 100644
--- a/auth/pubspec.yaml
+++ b/auth/pubspec.yaml
@@ -148,12 +148,17 @@ flutter:
fonts:
- asset: fonts/Montserrat-Bold.ttf
-flutter_icons:
+# run "dart run flutter_launcher_icons" to generate icons
+flutter_launcher_icons:
+ image_path: "assets/generation-icons/icon-light.png"
+
android: "launcher_icon"
adaptive_icon_foreground: "assets/generation-icons/icon-light-adaptive-fg.png"
adaptive_icon_background: "assets/generation-icons/icon-light-adaptive-bg.png"
+ adaptive_icon_monochrome: "assets/generation-icons/icon-monochrome.png"
+ adaptive_icon_foreground_inset: 0
+
ios: true
- image_path: "assets/generation-icons/icon-light.png"
remove_alpha_ios: true
flutter_native_splash: