Commit 300d6c93cd1aa27655ebe60dfda0c9916f3d00d8
1 parent
dc240b6a
feat(icon): 自定义 app 图标(深紫渐变 + 白色麦克风 + 红色录制点)
Adaptive Icon:ic_launcher_background(#1A0A3C→#7C3AED 135° 渐变) + ic_launcher_foreground(白色麦克风胶囊体 + 3条声波纹路 + 弧形支架 + 右上角红色录制圆点)。minSdk=30 只需 mipmap-anydpi-v26,无需 PNG。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Showing
5 changed files
with
91 additions
and
0 deletions
lifelog-recorder/app/src/main/AndroidManifest.xml
| ... | ... | @@ -22,6 +22,8 @@ |
| 22 | 22 | <application |
| 23 | 23 | android:name=".LifelogApp" |
| 24 | 24 | android:label="Lifelog" |
| 25 | + android:icon="@mipmap/ic_launcher" | |
| 26 | + android:roundIcon="@mipmap/ic_launcher_round" | |
| 25 | 27 | android:allowBackup="false" |
| 26 | 28 | android:supportsRtl="true" |
| 27 | 29 | android:networkSecurityConfig="@xml/network_security_config" | ... | ... |
lifelog-recorder/app/src/main/res/drawable/ic_launcher_background.xml
0 → 100644
lifelog-recorder/app/src/main/res/drawable/ic_launcher_foreground.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<!-- Adaptive icon foreground: 108×108dp, safe zone center 72×72dp (坐标 18–90). | |
| 3 | + 设计:白色麦克风(胶囊体 + 弧形支架 + 底座)+ 右上角红色录制圆点。 --> | |
| 4 | +<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
| 5 | + android:width="108dp" | |
| 6 | + android:height="108dp" | |
| 7 | + android:viewportWidth="108" | |
| 8 | + android:viewportHeight="108"> | |
| 9 | + | |
| 10 | + <!-- 麦克风胶囊体 --> | |
| 11 | + <path | |
| 12 | + android:pathData="M54,28 C47.4,28 42,33.4 42,40 L42,60 C42,66.6 47.4,72 54,72 C60.6,72 66,66.6 66,60 L66,40 C66,33.4 60.6,28 54,28Z" | |
| 13 | + android:fillColor="#FFFFFF"/> | |
| 14 | + | |
| 15 | + <!-- 胶囊体内部纹路(3条横线,代表声波/录音) --> | |
| 16 | + <path | |
| 17 | + android:pathData="M48,44 L60,44" | |
| 18 | + android:strokeColor="#7C3AED" | |
| 19 | + android:strokeWidth="2.5" | |
| 20 | + android:strokeLineCap="round" | |
| 21 | + android:fillColor="#00000000"/> | |
| 22 | + <path | |
| 23 | + android:pathData="M47,50 L61,50" | |
| 24 | + android:strokeColor="#7C3AED" | |
| 25 | + android:strokeWidth="2.5" | |
| 26 | + android:strokeLineCap="round" | |
| 27 | + android:fillColor="#00000000"/> | |
| 28 | + <path | |
| 29 | + android:pathData="M48,56 L60,56" | |
| 30 | + android:strokeColor="#7C3AED" | |
| 31 | + android:strokeWidth="2.5" | |
| 32 | + android:strokeLineCap="round" | |
| 33 | + android:fillColor="#00000000"/> | |
| 34 | + | |
| 35 | + <!-- 弧形支架 --> | |
| 36 | + <path | |
| 37 | + android:pathData="M36,60 C36,74.4 44.3,84 54,84 C63.7,84 72,74.4 72,60" | |
| 38 | + android:strokeColor="#FFFFFF" | |
| 39 | + android:strokeWidth="4.5" | |
| 40 | + android:strokeLineCap="round" | |
| 41 | + android:fillColor="#00000000"/> | |
| 42 | + | |
| 43 | + <!-- 竖茎 --> | |
| 44 | + <path | |
| 45 | + android:pathData="M54,84 L54,92" | |
| 46 | + android:strokeColor="#FFFFFF" | |
| 47 | + android:strokeWidth="4.5" | |
| 48 | + android:strokeLineCap="round" | |
| 49 | + android:fillColor="#00000000"/> | |
| 50 | + | |
| 51 | + <!-- 底座横线 --> | |
| 52 | + <path | |
| 53 | + android:pathData="M44,92 L64,92" | |
| 54 | + android:strokeColor="#FFFFFF" | |
| 55 | + android:strokeWidth="4.5" | |
| 56 | + android:strokeLineCap="round" | |
| 57 | + android:fillColor="#00000000"/> | |
| 58 | + | |
| 59 | + <!-- 录制状态红点(右上角) --> | |
| 60 | + <path | |
| 61 | + android:pathData="M72,22 m-8,0 a8,8 0 1,0 16,0 a8,8 0 1,0 -16,0" | |
| 62 | + android:fillColor="#FF3B30"/> | |
| 63 | + | |
| 64 | + <!-- 红点高光(让圆点更立体) --> | |
| 65 | + <path | |
| 66 | + android:pathData="M70,18 m-3,0 a3,3 0 1,0 6,0 a3,3 0 1,0 -6,0" | |
| 67 | + android:fillColor="#FF8080" | |
| 68 | + android:fillAlpha="0.5"/> | |
| 69 | + | |
| 70 | +</vector> | ... | ... |
lifelog-recorder/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
0 → 100644
lifelog-recorder/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
0 → 100644