完善应用图标及启动页

This commit is contained in:
Joker.X
2025-12-01 20:46:03 +08:00
parent cfaf15c1dc
commit c46b9ead5b
20 changed files with 67 additions and 38 deletions

2
.gitignore vendored
View File

@@ -14,3 +14,5 @@
.cxx .cxx
local.properties local.properties
/.idea/ /.idea/
/android-project-compose-docs/
/context/

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -11,11 +11,11 @@ import javax.inject.Qualifier
import javax.inject.Singleton import javax.inject.Singleton
/** /**
* 状态模块提供 UserState 所需的应用级协程作用域 * 用状态模块提供应用级协程作用域
*/ */
@Module @Module
@InstallIn(SingletonComponent::class) @InstallIn(SingletonComponent::class)
object UserStateModule { object AppStateModule {
/** /**
* 提供应用级别的协程作用域 * 提供应用级别的协程作用域

View File

@@ -1,30 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>

View File

@@ -0,0 +1,35 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<group android:scaleX="0.6068966"
android:scaleY="0.6068966"
android:translateX="235.79463"
android:translateY="204.1461">
<path
android:pathData="M373.8,202.3H189.6a67.8,67.8 0,0 0,-67.6 67.8,65.6 65.6,0 0,0 65.6,67.6h188.2l-2,-135.5z"
android:fillColor="#7585FF"/>
<path
android:pathData="M793.5,805.2H189.4a67.8,67.8 0,0 1,-67.4 -67.6V269.7a67.8,67.8 0,0 0,72 68.1h501.1s98.5,-8.5 98.5,65.6v401.8z"
android:fillColor="#465CFF"/>
<path
android:fillColor="#FF000000"
android:pathData="M474.5,479.8a37.6,37.6 0,1 0,14.4 72.2,37.4 37.4,0 0,0 -14.4,-72.2z"/>
<path
android:pathData="M511.7,565.6a60.8,60.8 0,0 0,-34.8 -109.4h2a57.6,57.6 0,0 1,10.7 0L489.6,418.5a12,12 0,0 0,-5.7 -10.7,11.8 11.8,0 0,0 -12,0 12,12 0,0 0,-5.7 10.7v38.3a61.1,61.1 0,0 0,-26.7 109.4L328.1,804.3h72.6l51.4,-109.4a26.7,26.7 0,0 1,24.1 -15.1,26.3 26.3,0 0,1 23.9,15.1l53,109.4h73.5L511.7,565.6zM589.4,793.6a37.6,37.6 0,0 1,-26.5 -64.1,37.4 37.4,0 0,1 64.1,26.5 37.6,37.6 0,0 1,-37.6 37.6z"
android:fillColor="#3870B2"/>
<path
android:pathData="M334,235.6h258.4v47.5H334v-47.5z"
android:fillColor="#FFFFFF"/>
<path
android:pathData="M454.4,479.8a37.4,37.4 0,1 1,-26.7 10.9,38.1 38.1,0 0,1 26.7,-10.9zM469.2,457.9L469.2,418.5a12,12 0,0 0,-5.7 -10.7,11.8 11.8,0 0,0 -12,0 12,12 0,0 0,-5.7 10.7v38.3a61.1,61.1 0,0 0,-26.7 109.4L279.3,867.1a33.3,33.3 0,0 0,2.4 33.5,33.7 33.7,0 0,0 30.4,14.2 33,33 0,0 0,27.1 -19.7l93.2,-200.2a26.9,26.9 0,0 1,24.1 -15.1,26.3 26.3,0 0,1 23.9,15.1l95.6,199.1a33,33 0,1 0,59.5 -28.9L491.6,565.6a60.6,60.6 0,0 0,21.9 -60.6,61.3 61.3,0 0,0 -43.8,-46.8"
android:fillColor="#073042"/>
<path
android:pathData="M555,277.4a17.5,17.5 0,0 1,-12.7 -30,17.7 17.7,0 0,1 30.2,12.5 17.5,17.5 0,0 1,-17.5 17.5m-194.5,0a17.5,17.5 0,0 1,-12.5 -30,17.7 17.7,0 1,1 24.9,24.9 17.3,17.3 0,0 1,-12.5 5M561.4,171.3l35,-60.8a7.4,7.4 0,0 0,-12.7 -7.4l-35.4,61.7a220.6,220.6 0,0 0,-180.8 0l-35.7,-61.7a7.4,7.4 0,0 0,-6.3 -3.7,8.1 8.1,0 0,0 -6.3,3.7 7.4,7.4 0,0 0,0 7.4l35.2,60.8a208.3,208.3 0,0 0,-107.7 166.5h422.3A208.3,208.3 0,0 0,561.4 171.3"
android:fillColor="#3DDC84"/>
<path
android:pathData="M732.9,467.6h-27.8a3.5,3.5 0,0 0,-3.5 3.5v438.7a3.5,3.5 0,0 0,3.3 3.5h28.7a60.8,60.8 0,0 0,60.6 -60.8V406.7a60.8,60.8 0,0 1,-61.3 60.8z"
android:fillColor="#7585FF"/>
</group>
</vector>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" /> <background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/> <foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon> </adaptive-icon>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" /> <background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/> <foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon> </adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 982 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.CoolMusic" parent="android:Theme.Material.Light.NoActionBar">
<!--启动界面背景颜色-->
<item name="android:windowSplashScreenBackground">@color/black</item>
<!--启动页图标-->
<item name="android:windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
</style>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.CoolMusic" parent="android:Theme.Material.Light.NoActionBar">
<!--启动页背景颜色-->
<item name="android:windowSplashScreenBackground">@color/white</item>
<!--启动页图标-->
<item name="android:windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
</style>
</resources>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>