💚 End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tighten Ensu app icon docs
Manav Rathi2288d00d4b86
diff --git a/mobile/native/android/apps/ensu/docs/app-icon.md b/mobile/native/android/apps/ensu/docs/app-icon.mdnew file mode 100644index 0000000000..37e1461106--- /dev/null+++ b/mobile/native/android/apps/ensu/docs/app-icon.md@@ -0,0 +1,19 @@+# Updating the Android app icon++The Android app icon is an adaptive icon: a transparent foreground PNG padded to ~50% of the canvas (so it fits circular and squircle masks without clipping), plus a solid background color.++## Steps++1. Start from the transparent source PNG. Center it on a square canvas with the foreground taking ~50% of the width (current safe-zone scale: `0.50`).+2. Export the adaptive foreground as `ic_launcher_foreground.png` (432×432) into [`res/drawable/`](../app-ui/src/main/res/drawable/).+3. Export legacy icons as both `ic_launcher.png` and `ic_launcher_round.png` (same image) at the following sizes into the matching [mipmap folders](../app-ui/src/main/res/):+ - `mipmap-mdpi/` at 48×48+ - `mipmap-hdpi/` at 72×72+ - `mipmap-xhdpi/` at 96×96+ - `mipmap-xxhdpi/` at 144×144+ - `mipmap-xxxhdpi/` at 192×192+4. Set the adaptive background color in [`res/values/colors.xml`](../app-ui/src/main/res/values/colors.xml):+ ```xml+ <color name="ic_launcher_background">#FDCE13</color>+ ```+5. Install on a device and check the icon under circle, squircle, and themed launcher masks. If it clips, reduce the safe-zone (e.g. `0.45`).diff --git a/mobile/native/android/apps/ensu/docs/appicon.md b/mobile/native/android/apps/ensu/docs/appicon.mddeleted file mode 100644index 7a094cb0cb..0000000000--- a/mobile/native/android/apps/ensu/docs/appicon.md+++ /dev/null@@ -1,45 +0,0 @@-# Updating the Android app icon--This project uses an **adaptive icon** with a foreground PNG plus a solid background color.-The foreground must be padded so it fits inside circular/squircle masks without clipping.--## Sources-- **Foreground artwork**: provided by design (transparent PNG, 1024×1024).-- **Background color**: currently `#FDCE13` (see `res/values/colors.xml`).--## Steps--1. **Prepare the foreground**- - Use the provided foreground PNG (transparent background).- - Center the artwork on a square canvas and add **extra padding**.- - Current safe-zone scale is **0.50** (content ~50% of canvas width).- - This ensures the icon doesn’t clip in adaptive masks.--2. **Generate Android assets**- - Adaptive foreground: `res/drawable/ic_launcher_foreground.png` (432×432).- - Legacy icons (with background color):- - `res/mipmap-mdpi/ic_launcher.png` (48×48)- - `res/mipmap-hdpi/ic_launcher.png` (72×72)- - `res/mipmap-xhdpi/ic_launcher.png` (96×96)- - `res/mipmap-xxhdpi/ic_launcher.png` (144×144)- - `res/mipmap-xxxhdpi/ic_launcher.png` (192×192)- - Also update `ic_launcher_round.png` in each mipmap folder with the same image.--3. **Set the adaptive background color**- - Update `res/values/colors.xml`:- ```xml- <color name="ic_launcher_background">#FDCE13</color>- ```- - Adaptive icon XMLs already reference this color:- - `res/mipmap-anydpi-v26/ic_launcher.xml`- - `res/mipmap-anydpi-v26/ic_launcher_round.xml`--4. **Verify**- - Install on a device and check the icon under:- - Circle mask- - Squircle mask- - Themed launcher--## Notes-- If the icon still clips in circular masks, reduce the foreground safe-zone scale (e.g., 0.45).-- Keep the artwork centered when adjusting padding.diff --git a/mobile/native/darwin/Apps/Ensu/docs/app-icon.md b/mobile/native/darwin/Apps/Ensu/docs/app-icon.mdindex ff522ee694..6470c80630 100644--- a/mobile/native/darwin/Apps/Ensu/docs/app-icon.md+++ b/mobile/native/darwin/Apps/Ensu/docs/app-icon.md@@ -1,4 +1,4 @@-# Updating the app icon+# Updating the iOS app iconThe iOS app icon is based on a 1024×1024 transparent foreground image centered on a square canvas. From this we create three assets with differing backgrounds and add them to `AppIcon.appiconset`.