From 461078923e6c10c01542557ac5bad264af119ec6 Mon Sep 17 00:00:00 2001 From: Gray Zhang Date: Sun, 19 Oct 2025 11:13:58 +0800 Subject: [PATCH 1/4] fix: restore adaptive icon support removed in PR #147 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit restores Android adaptive icon functionality that was removed in PR #147. The adaptive icon provides better integration with Android 8.0+ (API 26+) launcher features including: - Shape masking (circle, squircle, rounded square, etc.) - Visual effects and animations - Themed icons support (Android 13+) Changes: - Add ic_launcher_foreground.xml using the V2er logo vector - Add ic_launcher_monochrome.xml for themed icon support - Restore mipmap-anydpi-v26 adaptive icon configurations - Support both regular and round adaptive icons The foreground icon is derived from app/src/main/res/drawable/logo_svg.xml to maintain consistency with the app's branding. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../main/res/drawable/ic_launcher_foreground.xml | 15 +++++++++++++++ .../main/res/drawable/ic_launcher_monochrome.xml | 15 +++++++++++++++ .../main/res/mipmap-anydpi-v26/ic_launcher.xml | 6 ++++++ .../res/mipmap-anydpi-v26/ic_launcher_round.xml | 6 ++++++ 4 files changed, 42 insertions(+) create mode 100644 app/src/main/res/drawable/ic_launcher_foreground.xml create mode 100644 app/src/main/res/drawable/ic_launcher_monochrome.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 00000000..ab7e3899 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_launcher_monochrome.xml b/app/src/main/res/drawable/ic_launcher_monochrome.xml new file mode 100644 index 00000000..ab7e3899 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_monochrome.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..c78bee3b --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..c78bee3b --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,6 @@ + + + + + + From 36b046523f902f391275012d197a534425ec6d2e Mon Sep 17 00:00:00 2001 From: Gray Zhang Date: Sun, 19 Oct 2025 11:18:51 +0800 Subject: [PATCH 2/4] fix: use color resource for adaptive icon foreground Replace hardcoded black color with @color/splash_logo_color reference to ensure proper theme support and consistency with the app's branding. The splash_logo_color is #FF111214 (dark gray) for light theme and #FFFFFFFF (white) for dark theme. --- app/src/main/res/drawable/ic_launcher_foreground.xml | 2 +- app/src/main/res/drawable/ic_launcher_monochrome.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml index ab7e3899..285f60cc 100644 --- a/app/src/main/res/drawable/ic_launcher_foreground.xml +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -10,6 +10,6 @@ android:translateY="21.6"> + android:fillColor="@color/splash_logo_color" /> diff --git a/app/src/main/res/drawable/ic_launcher_monochrome.xml b/app/src/main/res/drawable/ic_launcher_monochrome.xml index ab7e3899..285f60cc 100644 --- a/app/src/main/res/drawable/ic_launcher_monochrome.xml +++ b/app/src/main/res/drawable/ic_launcher_monochrome.xml @@ -10,6 +10,6 @@ android:translateY="21.6"> + android:fillColor="@color/splash_logo_color" /> From 922066679e660634ff53c03384dfa0f97af57854 Mon Sep 17 00:00:00 2001 From: Gray Zhang Date: Sun, 19 Oct 2025 11:30:53 +0800 Subject: [PATCH 3/4] fix: use new logo design for adaptive icon with proper structure - Restore the original adaptive icon structure with white background rectangle - Use the new V logo from logo_svg.xml instead of old design - Properly scale and center the logo within the 108dp canvas - White background (#FFFFFF) provides better contrast than light gray - Monochrome icon updated for Android 13+ themed icon support --- .../main/res/drawable/ic_launcher_foreground.xml | 13 +++++++++---- .../main/res/drawable/ic_launcher_monochrome.xml | 11 ++++++----- app/src/main/res/values/ic_launcher_background.xml | 2 +- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml index 285f60cc..47a3e873 100644 --- a/app/src/main/res/drawable/ic_launcher_foreground.xml +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -3,11 +3,16 @@ android:height="108dp" android:viewportWidth="108" android:viewportHeight="108"> + + + + android:scaleX="0.04" + android:scaleY="0.04" + android:translateX="30" + android:translateY="30"> diff --git a/app/src/main/res/drawable/ic_launcher_monochrome.xml b/app/src/main/res/drawable/ic_launcher_monochrome.xml index 285f60cc..fcf8deb3 100644 --- a/app/src/main/res/drawable/ic_launcher_monochrome.xml +++ b/app/src/main/res/drawable/ic_launcher_monochrome.xml @@ -4,12 +4,13 @@ android:viewportWidth="108" android:viewportHeight="108"> + android:scaleX="0.05" + android:scaleY="0.05" + android:translateX="27" + android:translateY="27"> + android:fillColor="#000000" + android:fillAlpha="1" /> diff --git a/app/src/main/res/values/ic_launcher_background.xml b/app/src/main/res/values/ic_launcher_background.xml index a256bc80..c5d5899f 100644 --- a/app/src/main/res/values/ic_launcher_background.xml +++ b/app/src/main/res/values/ic_launcher_background.xml @@ -1,4 +1,4 @@ - #EEEEEE + #FFFFFF \ No newline at end of file From 78cefca6a51f973e50274cadb5816c4b56ea6cc6 Mon Sep 17 00:00:00 2001 From: Gray Zhang Date: Sun, 19 Oct 2025 11:35:52 +0800 Subject: [PATCH 4/4] fix: improve adaptive icon visibility and scaling - Increased logo scale from 0.04 to 0.045 for better visibility - Improved centering with translateX/Y adjusted to 31.5 - Added night mode variant with inverted colors (dark background, white logo) - Fixed dark mode visibility issue where logo was invisible - Use hardcoded colors for better consistency --- .../drawable-night/ic_launcher_foreground.xml | 20 +++++++++++++++++++ .../res/drawable/ic_launcher_foreground.xml | 12 +++++------ 2 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 app/src/main/res/drawable-night/ic_launcher_foreground.xml diff --git a/app/src/main/res/drawable-night/ic_launcher_foreground.xml b/app/src/main/res/drawable-night/ic_launcher_foreground.xml new file mode 100644 index 00000000..401c25ce --- /dev/null +++ b/app/src/main/res/drawable-night/ic_launcher_foreground.xml @@ -0,0 +1,20 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml index 47a3e873..fc8e6d89 100644 --- a/app/src/main/res/drawable/ic_launcher_foreground.xml +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -7,14 +7,14 @@ - + + android:scaleX="0.045" + android:scaleY="0.045" + android:translateX="31.5" + android:translateY="31.5"> + android:fillColor="#111214" />