Modernize adaptive launcher icon and README preview #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adaptive icon resources were rendering as legacy “dinner plate” artifacts, causing shrunken, clipped logos and white margins.
docs/icon.svg) and updated README to reference it instead of the WebP.Example (foreground vector scaling):
Original prompt
I am having issues with the icon of this app. Please read the attached documentation carefully and fix all icon resources in all directories within the app. Follow best practices and write idiomatic code. you can use the libwebp command line utilities to generate webp, and use other available command line utilities to handle the format conversion. Note that it is expected that we follow modern Android icon guidelines to provide the vectorized icon and follow best practices to ensure the icon is displayed correctly across all user configurations and environments. Think carefully. Also please update the README.md to use a SVG icon instead of using the webp icon.
===
Based on the provided screenshot, here is the identification of the design issues for the Letterbox (Letterboxd) and WebDAV icons, followed by a technical Design Document to resolve them.
1. Issue Identification
The two icons on the right (Letterbox and WebDAV) exhibit the classic "Legacy Icon" artifact, often referred to as the "Dinner Plate" effect or "White Margin" issue.
Technical Root Cause:
These apps likely lack a valid
adaptive-iconXML resource in theirres/mipmap-anydpi-v26folder. The Android launcher detects a legacy (static) image file (PNG/JPG) and attempts to "adapt" it by scaling it down and placing it on a default white circular background to ensure uniform shape, resulting in the unappealing white borders.2. Proposed Design Document: Adaptive Icon Update
Project: Icon Modernization for Android (Adaptive Support)
Target API: Android 8.0 (API 26)+
Objective: Eliminate white margins and ensure full-bleed masking across all device themes (Circle, Squircle, Rounded Square).
2.1. Design Specifications
To fix the "square-in-circle" look, the icon must be split into two separate layers:
@color/background)Full bleed
#14181C).WebDAV: Use the brand's primary blue (
#0057C8). This layer must contain no logos, just color/texture.@drawable/ic_foreground)Logo size: ~60dp
WebDAV: The "DAV" text/cloud symbol must be centered in the safe zone.
2.2. Safe Zone Compliance
The system will apply a mask that can clip up to 33% of the outer canvas.
2.3. Technical Implementation (XML)
File Path:
res/mipmap-anydpi-v26/ic_launcher.xml2.4. Before & After Simulation
1
2
3
4
5
6
[7](http...
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.