Skip to content

#1993: Android launcher and notification icons from MailCraft's own icon - #1994

Merged
benandez merged 1 commit into
mainfrom
mobile/app-icon
Nov 26, 2026
Merged

benandez merged 1 commit into
mainfrom
mobile/app-icon

Conversation

@benandez

@benandez benandez commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Closes #1993

What it does

  • Launcher icon. The app had none (no android:icon; Android drew its default). It is now MailCraft's icon (assets/app-icon/source/mailcraft.svg) as an adaptive icon (res/mipmap-anydpi/ic_launcher.xml):
    • background: the blue tile, edge to edge (the launcher shapes it);
    • foreground: the two tilted sheets and the calendar page with the envelope, kept within the 66 dp safe circle;
    • monochrome: the calendar page alone, in one colour, for Android 13 themed icons.
      minSdk is 29, so there is no PNG fallback and no roundIcon (an adaptive icon is masked to whatever shape the launcher uses).
  • Notification icon. New mail and reminders used an envelope bitmap drawn in code. They now use res/drawable/ic_notification.xml, a 24 dp white silhouette of the same calendar page: the parts are filled, and the envelope's lines and the ring notches are left as gaps. The bitmap code (envelope()) is removed because nothing else used it.
  • The source's shapes are written by hand as Android vectors. The path data stays in the SVG's own coordinates and a group's scale and offset place it. SVG drop shadows become a plain offset shade, since VectorDrawable has no filters. assets/app-icon/README.md notes that cargo xtask icon doesn't write these files, so a change to the drawing has to be copied into them by hand.
  • Every new file has its row in ATTRIBUTION.md (MailCraft contributors, design: Martin Ball), worded like the other app-icon rows.

Tests

  • Looked at the result: a throwaway Paparazzi render (not committed) of the launcher layers under circle and squircle masks at several sizes, the monochrome layer tinted, and the notification icon at 16/24/48/96 dp in white on black and tinted on white. Compared with the source SVG rendered by rsvg-convert.
  • ./gradlew lint detekt detektDebug testDebugUnitTest verifyPaparazziDebug: green. No goldens changed.
  • XTASK_CI_ONLY=fmt,assets,spdx,test-files,workflows,layers,wasm-clock,i18n,release-notes,docs-log cargo xtask ci: green.

Human-reviewed, AI-assisted, nobody's mailbox harmed.

Summary by CodeRabbit

  • New Features
    • Added a MailCraft app icon for Android home screens and app lists, including adaptive and themed-icon versions.
    • Added a matching status-bar icon for mail notifications and reminders.
  • Documentation
    • Updated icon documentation with details about the Android assets and how to update them.

The Android app had no launcher icon (Android drew its default) and its notifications
carried an envelope drawn in code. The launcher icon is now MailCraft's icon
(assets/app-icon/source/mailcraft.svg) as an adaptive icon: the blue tile behind, the
sheets and the calendar page with the envelope in front within the 66 dp safe circle, and
the page alone in one colour for Android 13's themed icons. New mail and reminders show
the page as a white status-bar silhouette. The source's shapes are written by hand as
Android vectors; each file has its ATTRIBUTION.md row.

Human-reviewed, AI-assisted, nobody's mailbox harmed.
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Android app now has an adaptive MailCraft launcher icon, including a monochrome layer, and a one-colour notification icon. The application declaration and mail and reminder notification builders reference these resources.

Changes: Android icon integration

Layer / File(s) Summary
Define Android icon resources
apps/mailcraft-android/app/src/main/res/drawable/*, apps/mailcraft-android/app/src/main/res/mipmap-anydpi/ic_launcher.xml, ATTRIBUTION.md, assets/app-icon/README.md
Adds adaptive launcher layers and a notification vector. Attribution and icon documentation describe the assets and their manual update process.
Apply icons in the Android app
apps/mailcraft-android/app/src/main/AndroidManifest.xml, apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/MailNotices.kt, apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/ReminderReceiver.kt, packaging/release-notes.d/fixes/1993.android.md
The application declaration references the adaptive launcher icon. Mail and reminder notifications use the notification drawable instead of bitmap-drawn icons. The release note describes the Android icons.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Feature · Severity of issue fixed: Low

Merge Risk: Minimal · up to 6b1da · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the Android launcher and notification icons are replaced with MailCraft's own icon, which matches the raw summary, the PR objectives, and linked issue #1993. The title…
Description check Passed The description follows the template. It includes 'Closes #1993' and a 'What it does' section that covers the launcher icon, notification icon, hand-written vectors, and attribution. It also has a 'Te…
Linked Issues check Passed Directly linked issue #1993 requires (a) MailCraft's launcher icon from assets/app-icon/source/mailcraft.svg, as an adaptive icon with a monochrome layer for themed icons, and (b) a one-colour silhoue…
Out of Scope Changes check Passed All changes in the summary serve the icon objective of #1993. Launcher resources (ic_launcher.xml, background, foreground, monochrome) and the notification icon (ic_notification.xml) implement the req…
Full details: Title check

Explanation

The title names the main change: the Android launcher and notification icons are replaced with MailCraft's own icon, which matches the raw summary, the PR objectives, and linked issue #1993. The title is specific and concise and does not use vague terms.

Full details: Description check

Explanation

The description follows the template. It includes 'Closes #1993' and a 'What it does' section that covers the launcher icon, notification icon, hand-written vectors, and attribution. It also has a 'Tests' section with the commands run. The template's checklist items (CLA signature, 'Allow edits by maintainers', and the cargo xtask ci checkbox) are not visibly ticked, and the 'What changes for the person using MailCraft' heading is only partly addressed. The description covers the main required information.

Full details: Linked Issues check

Explanation

Directly linked issue #1993 requires (a) MailCraft's launcher icon from assets/app-icon/source/mailcraft.svg, as an adaptive icon with a monochrome layer for themed icons, and (b) a one-colour silhouette of that icon for notifications. The summary shows: AndroidManifest.xml sets android:icon to @mipmap/ic_launcher; res/mipmap-anydpi/ic_launcher.xml is an adaptive icon referencing background, foreground, and monochrome drawables (ic_launcher_background.xml, ic_launcher_foreground.xml, ic_launcher_monochrome.xml); ic_notification.xml is a 24 dp single-colour vector used as the small icon in MailNotices.kt and ReminderReceiver.kt. Requirement (a) and (b) are met at the level of the resource structure. The summary does not allow independent verification that the hand-written path data matches the SVG geometry; the author reports a visual comparison against rsvg-convert renders, which I did not re-run. No coding requirement in #1993 calls for automated tests. Issue #1993 is open and directly linked, so its requirements apply in full. The docs/log.d/ROADMAP/progress/1993.md file is excluded from review and was not used.

Full details: Out of Scope Changes check

Explanation

All changes in the summary serve the icon objective of #1993. Launcher resources (ic_launcher.xml, background, foreground, monochrome) and the notification icon (ic_notification.xml) implement the requested icons. The manifest change wires the launcher icon. MailNotices.kt and ReminderReceiver.kt switch to the new notification icon. Removing envelope() and its bitmap imports follows from that switch, since the summary states nothing else used it. ATTRIBUTION.md rows and the assets/app-icon/README.md note support the new files and the manual copy workflow. The release note records the user-visible change. No unrelated behavior change appears in the summary.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 55a0043 and 6b1da71.

Files ignored due to path filters: 1

  • docs/log.d/ROADMAP/progress/1993.md is excluded by !docs/**
Files selected for processing: 11

  • ATTRIBUTION.md
  • apps/mailcraft-android/app/src/main/AndroidManifest.xml
  • apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/MailNotices.kt
  • apps/mailcraft-android/app/src/main/kotlin/work/mailcraft/android/ReminderReceiver.kt
  • apps/mailcraft-android/app/src/main/res/drawable/ic_launcher_background.xml
  • apps/mailcraft-android/app/src/main/res/drawable/ic_launcher_foreground.xml
  • apps/mailcraft-android/app/src/main/res/drawable/ic_launcher_monochrome.xml
  • apps/mailcraft-android/app/src/main/res/drawable/ic_notification.xml
  • apps/mailcraft-android/app/src/main/res/mipmap-anydpi/ic_launcher.xml
  • assets/app-icon/README.md
  • packaging/release-notes.d/fixes/1993.android.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

@sonarqubecloud

Copy link
Copy Markdown

@benandez
benandez added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 61e9f46 Nov 26, 2026
18 checks passed
@benandez
benandez deleted the mobile/app-icon branch November 26, 2026 17:07
benandez added a commit that referenced this pull request Nov 26, 2026
Human-reviewed, AI-assisted, nobody's mailbox harmed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android: the app and its notifications show Android's default icon, not MailCraft's

1 participant