Skip to content

Commit

Permalink
UI: Update app launcher icon and dimensions (#335)
Browse files Browse the repository at this point in the history
### TL;DR
Updated app launcher icon design with new dimensions and colors

### What changed?
- Created debug-specific launcher icons with black background and blue text
- Modified main launcher icons with black background and white text
- Adjusted viewport dimensions from 108dp to 200dp
- Updated icon path data for better scaling
- Standardized height/width ratio to be consistent across all icon variants

### How to test?
1. Build and install both debug and release variants of the app
2. Verify the app icon appears correctly on the device home screen
3. Check that the icon displays properly in different Android versions
4. Confirm the monochrome icon renders appropriately in system UI elements

### Why make this change?
To provide a more polished and consistent app icon across different Android versions and build variants while following Material Design guidelines for adaptive icons
  • Loading branch information
ksharma-xyz authored Nov 11, 2024
1 parent c7be280 commit 5a87705
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 12 deletions.
11 changes: 11 additions & 0 deletions app/src/debug/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:viewportWidth="200.0"
android:viewportHeight="200.0">
<path
android:name="background_path"
android:fillColor="#000000"
android:pathData="M0,0h200v200h-200z" />
</vector>
9 changes: 9 additions & 0 deletions app/src/debug/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:viewportWidth="200"
android:viewportHeight="200">
<path
android:pathData="M54.9,90.12V115H48.9V90.12H54.9ZM69.75,90.12L60.11,102.73L54.47,108.9L53.37,103.4L56.98,97.93L62.35,90.12H69.75ZM62.65,115L56.23,103.79L60.89,100.35L69.75,115H62.65ZM73.03,90.12H82.83C84.74,90.12 86.4,90.4 87.82,90.97C89.23,91.54 90.32,92.38 91.08,93.5C91.86,94.62 92.24,96 92.24,97.64C92.24,99.06 92.02,100.25 91.58,101.21C91.13,102.17 90.51,102.96 89.71,103.58C88.93,104.2 88.01,104.71 86.96,105.11L85,106.22H76.78L76.74,101.58H82.83C83.59,101.58 84.22,101.45 84.72,101.17C85.23,100.9 85.6,100.51 85.85,100.01C86.11,99.5 86.25,98.89 86.25,98.18C86.25,97.47 86.11,96.85 85.85,96.34C85.59,95.83 85.2,95.43 84.69,95.16C84.19,94.89 83.57,94.75 82.83,94.75H79.03V115H73.03V90.12ZM86.66,115L81.15,103.99L87.51,103.96L93.08,114.74V115H86.66ZM108.16,95.35L102.09,115H95.65L104.79,90.12H108.88L108.16,95.35ZM113.19,115L107.1,95.35L106.32,90.12H110.45L119.65,115H113.19ZM112.95,105.72V110.35H100.18V105.72H112.95ZM129.6,90.12V115H123.62V90.12H129.6ZM152.01,110.39V115H139.43V110.39H152.01ZM141.57,90.12V115H135.57V90.12H141.57Z"
android:fillColor="#00B5EF"/>
</vector>
12 changes: 6 additions & 6 deletions app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108.0"
android:viewportHeight="108.0">
android:width="200dp"
android:height="200dp"
android:viewportWidth="200.0"
android:viewportHeight="200.0">
<path
android:name="background_path"
android:fillColor="@color/background_color"
android:pathData="M0,0h108v108h-108z" />
android:fillColor="#000000"
android:pathData="M0,0h200v200h-200z" />
</vector>
8 changes: 4 additions & 4 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="159dp"
android:height="200dp"
android:viewportWidth="200"
android:viewportHeight="159">
android:viewportHeight="200">
<path
android:pathData="M47.71,64.56V93H41.34V64.56H47.71ZM64.7,64.56L53.57,78.78L47.09,85.81L45.93,79.89L50.21,73.76L56.89,64.56H64.7ZM57.32,93L49.47,80.01L54.31,76.24L64.86,93H57.32ZM68.45,64.56H79.37C81.54,64.56 83.43,64.89 85.01,65.54C86.62,66.19 87.85,67.15 88.71,68.43C89.56,69.71 89.99,71.28 89.99,73.16C89.99,74.72 89.74,76.05 89.23,77.14C88.72,78.23 88.01,79.14 87.08,79.86C86.17,80.57 85.11,81.15 83.88,81.59L81.81,82.73H72.51L72.47,77.79H79.39C80.34,77.79 81.13,77.62 81.75,77.28C82.38,76.94 82.85,76.46 83.16,75.85C83.48,75.23 83.65,74.5 83.65,73.66C83.65,72.8 83.48,72.06 83.16,71.44C82.83,70.81 82.35,70.34 81.71,70.01C81.09,69.67 80.31,69.5 79.37,69.5H74.82V93H68.45V64.56ZM84.19,93L77.81,80.36L84.53,80.34L91.01,92.71V93H84.19ZM107.73,69.97L100.38,93H93.59L104.11,64.56H108.41L107.73,69.97ZM113.82,93L106.46,69.97L105.7,64.56H110.05L120.62,93H113.82ZM113.51,82.41V87.34H98.68V82.41H113.51ZM131.36,64.56V93H125.01V64.56H131.36ZM156.65,88.08V93H142.29V88.08H156.65ZM144.46,64.56V93H138.1V64.56H144.46Z"
android:fillColor="@color/foreground_color"/>
android:pathData="M54.9,90.12V115H48.9V90.12H54.9ZM69.75,90.12L60.11,102.73L54.47,108.9L53.37,103.4L56.98,97.93L62.35,90.12H69.75ZM62.65,115L56.23,103.79L60.89,100.35L69.75,115H62.65ZM73.03,90.12H82.83C84.74,90.12 86.4,90.4 87.82,90.97C89.23,91.54 90.32,92.38 91.08,93.5C91.86,94.62 92.24,96 92.24,97.64C92.24,99.06 92.02,100.25 91.58,101.21C91.13,102.17 90.51,102.96 89.71,103.58C88.93,104.2 88.01,104.71 86.96,105.11L85,106.22H76.78L76.74,101.58H82.83C83.59,101.58 84.22,101.45 84.72,101.17C85.23,100.9 85.6,100.51 85.85,100.01C86.11,99.5 86.25,98.89 86.25,98.18C86.25,97.47 86.11,96.85 85.85,96.34C85.59,95.83 85.2,95.43 84.69,95.16C84.19,94.89 83.57,94.75 82.83,94.75H79.03V115H73.03V90.12ZM86.66,115L81.15,103.99L87.51,103.96L93.08,114.74V115H86.66ZM108.16,95.35L102.09,115H95.65L104.79,90.12H108.88L108.16,95.35ZM113.19,115L107.1,95.35L106.32,90.12H110.45L119.65,115H113.19ZM112.95,105.72V110.35H100.18V105.72H112.95ZM129.6,90.12V115H123.62V90.12H129.6ZM152.01,110.39V115H139.43V110.39H152.01ZM141.57,90.12V115H135.57V90.12H141.57Z"
android:fillColor="#FFFFFF"/>
</vector>
2 changes: 1 addition & 1 deletion app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
</adaptive-icon>
2 changes: 1 addition & 1 deletion app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
</adaptive-icon>

0 comments on commit 5a87705

Please sign in to comment.