Skip to content

armgit / ente

Public Imported from GitHub
0

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

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.xml
index 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.png
new file mode 100644
index 0000000000..9de832cdc1
Binary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_ducky_hugging_e_launcher_foreground.png differ
diff --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.png
new file mode 100644
index 0000000000..7af2273092
Binary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_ducky_hugging_e_launcher_foreground.png differ
diff --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.png
new file mode 100644
index 0000000000..f53d16373f
Binary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_ducky_hugging_e_launcher_foreground.png differ
diff --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.png
new file mode 100644
index 0000000000..fb418ef800
Binary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_ducky_hugging_e_launcher_foreground.png differ
diff --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.png
new file mode 100644
index 0000000000..7a1f6573d6
Binary files /dev/null and b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_ducky_hugging_e_launcher_foreground.png differ
diff --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.xml
new file mode 100644
index 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 file
diff --git a/mobile/apps/photos/assets/launcher_icon/ducky-icon-green.png b/mobile/apps/photos/assets/launcher_icon/ducky-icon-green.png
deleted file mode 100644
index 400761c251..0000000000
Binary files a/mobile/apps/photos/assets/launcher_icon/ducky-icon-green.png and /dev/null differ
diff --git a/mobile/apps/photos/assets/launcher_icon/ducky-icon-foreground.png b/mobile/apps/photos/assets/launcher_icon/icon-ducky-hugging-e-foreground.png
similarity index 100%
rename from mobile/apps/photos/assets/launcher_icon/ducky-icon-foreground.png
rename to mobile/apps/photos/assets/launcher_icon/icon-ducky-hugging-e-foreground.png
diff --git a/mobile/apps/photos/lib/ui/settings/app_icon_selection_screen.dart b/mobile/apps/photos/lib/ui/settings/app_icon_selection_screen.dart
index 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(