π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add ducky icon for Android
ashilkna7805784b714
diff --git a/mobile/apps/photos/android/app/src/main/AndroidManifest.xml b/mobile/apps/photos/android/app/src/main/AndroidManifest.xmlindex 4583051e80..d9ccfbbe48 100644--- a/mobile/apps/photos/android/app/src/main/AndroidManifest.xml+++ b/mobile/apps/photos/android/app/src/main/AndroidManifest.xml@@ -135,6 +135,17 @@<category android:name="android.intent.category.LAUNCHER"/></intent-filter></activity-alias>+ <activity-alias+ android:name="${applicationId}.IconDuckyHuggingE"+ android:icon="@mipmap/icon_ducky_hugging_e"+ android:enabled="false"+ android:exported="true"+ android:targetActivity=".MainActivity">+ <intent-filter>+ <action android:name="android.intent.action.MAIN"/>+ <category android:name="android.intent.category.LAUNCHER"/>+ </intent-filter>+ </activity-alias><!-- Don't delete the meta-data below.This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->diff --git a/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_ducky_hugging_e_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_ducky_hugging_e_launcher_foreground.pngnew file mode 100644index 0000000000..9de832cdc1Binary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_ducky_hugging_e_launcher_foreground.png differdiff --git a/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_ducky_hugging_e_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_ducky_hugging_e_launcher_foreground.pngnew file mode 100644index 0000000000..7af2273092Binary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_ducky_hugging_e_launcher_foreground.png differdiff --git a/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_ducky_hugging_e_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_ducky_hugging_e_launcher_foreground.pngnew file mode 100644index 0000000000..f53d16373fBinary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_ducky_hugging_e_launcher_foreground.png differdiff --git a/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_ducky_hugging_e_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_ducky_hugging_e_launcher_foreground.pngnew file mode 100644index 0000000000..fb418ef800Binary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_ducky_hugging_e_launcher_foreground.png differdiff --git a/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_ducky_hugging_e_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_ducky_hugging_e_launcher_foreground.pngnew file mode 100644index 0000000000..7a1f6573d6Binary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_ducky_hugging_e_launcher_foreground.png differdiff --git a/mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_ducky_hugging_e.xml b/mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_ducky_hugging_e.xmlnew file mode 100644index 0000000000..dbf28a4248--- /dev/null+++ b/mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_ducky_hugging_e.xml@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">+ <background android:drawable="@color/ic_launcher_background"/>+ <foreground android:drawable="@drawable/ic_ducky_hugging_e_launcher_foreground"/>+</adaptive-icon>\ No newline at end of filediff --git a/mobile/apps/photos/assets/launcher_icon/ducky-icon-green.png b/mobile/apps/photos/assets/launcher_icon/ducky-icon-green.pngdeleted file mode 100644index 400761c251..0000000000Binary files a/mobile/apps/photos/assets/launcher_icon/ducky-icon-green.png and /dev/null differdiff --git a/mobile/apps/photos/assets/launcher_icon/ducky-icon-foreground.png b/mobile/apps/photos/assets/launcher_icon/icon-ducky-hugging-e-foreground.pngsimilarity index 100%rename from mobile/apps/photos/assets/launcher_icon/ducky-icon-foreground.pngrename to mobile/apps/photos/assets/launcher_icon/icon-ducky-hugging-e-foreground.pngdiff --git a/mobile/apps/photos/lib/ui/settings/app_icon_selection_screen.dart b/mobile/apps/photos/lib/ui/settings/app_icon_selection_screen.dartindex 71000dc1f8..8a42cc95f8 100644--- a/mobile/apps/photos/lib/ui/settings/app_icon_selection_screen.dart+++ b/mobile/apps/photos/lib/ui/settings/app_icon_selection_screen.dart@@ -13,7 +13,8 @@ enum AppIcon {iconGreen("Default", "IconGreen", "assets/launcher_icon/icon-green.png"),iconLight("Light", "IconLight", "assets/launcher_icon/icon-light.png"),iconDark("Dark", "IconDark", "assets/launcher_icon/icon-dark.png"),- iconOG("OG", "IconOG", "assets/launcher_icon/icon-og.png");+ iconOG("OG", "IconOG", "assets/launcher_icon/icon-og.png"),+ iconDuckyHuggingE("Ducky", "IconDuckyHuggingE", "assets/launcher_icon/icon-ducky-hugging-e-foreground.png");final String name;final String id;@@ -175,13 +176,26 @@ class _AppIconTile extends StatelessWidget {cornerRadius: 12,cornerSmoothing: 1,),- child: Image(- width: 60,- height: 60,- image: AssetImage(- appIcon.path,- ),- ),+ child: appIcon == AppIcon.iconDuckyHuggingE+ ? Container(+ width: 60,+ height: 60,+ color: const Color(0xFF08C225),+ child: Image(+ width: 60,+ height: 60,+ image: AssetImage(+ appIcon.path,+ ),+ ),+ )+ : Image(+ width: 60,+ height: 60,+ image: AssetImage(+ appIcon.path,+ ),+ ),),const SizedBox(width: 12),AnimatedSwitcher(