Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动屏幕优化 #96

Merged
merged 4 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ android {
minSdk = 24
targetSdk = 34
// 版本号为x.y.z则versionCode为x*1000000+y*10000+z*100+debug版本号(开发需要时迭代, 两位数)
versionCode = 4_04_022
versionCode = 4_04_023
versionName = "0.4.4"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
18 changes: 18 additions & 0 deletions app/src/main/res/drawable-night/icon_foreground_splash.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:width="160dp"
android:height="160dp"
android:viewportWidth="160"
android:viewportHeight="160"
tools:ignore="VectorRaster">

<path
android:fillColor="#B0B5DD"
android:pathData="M107.34,51.95c-1.13-.1-2.25.82-2.25,1.95v53.44c0,2.25-2.25,4.5-4.5,4.5h-39.93c-2.66,0-5.84-2.25-5.84-4.5v-5.12c0-2.25,2.66-3.69,5.43-3.69h37.98c1.13.1,2.25-.82,2.25-1.95v-45.25c0-5.12-3.69-8.29-9.11-8.29h-30.82c-5.02,0-10.03,2.87-10.03,8.29v57.85c.41,4.2,4.5,7.37,8.5,7.78h41.36c5.02,0,9.11-4.2,9.11-8.7v-54.06c.2-1.02-.72-2.25-2.15-2.25ZM98.63,103.14h-36.96c-1.33,0-2.25,1.02-2.25,2.25s1.02,2.25,2.25,2.25h37.16c1.33,0,2.25-1.02,2.25-2.25-.1-1.13-1.13-2.25-2.46-2.25Z"
/>
<path
android:fillColor="@color/splash_background"
android:pathData="M80.61,72.53c.41-.1,1.13-.41,1.64-.61.41-.1.92-.31,1.33-.41s.92-.31,1.13-.41l-.31,1.84c-.1.41-.31.72-.41,1.13-.31.72-.41,1.13-.72,1.84-.31.61-.61,1.02-.92,1.43s-.61.82-1.02,1.23l-4.1,1.23,3.48.72c-.41.41-.92.72-1.33,1.13s-1.02.72-1.43,1.13c-.61.41-1.13.72-1.74,1.02-.61.41-1.33.61-2.05.61s-1.43,0-2.25-.1c-.72-.1-1.64-.31-2.35-.72.31-.41.41-.72.72-1.23.31-.41.41-.82.92-1.43.41-.61.72-1.13,1.13-1.95,1.02-1.95,2.25-3.69,3.28-5.53s1.95-3.38,2.66-4.81c.92-1.74,1.74-3.28,2.66-4.61-1.02,1.23-2.25,2.66-3.38,4.2-1.02,1.23-2.25,2.87-3.38,4.61-1.33,1.84-2.46,3.79-3.99,5.73-.31.41-.41.82-.92,1.54-.41.61-.61,1.13-1.02,1.84s-.72,1.23-1.13,1.95-.72,1.43-1.13,1.95c-.92,1.54-1.74,3.07-2.76,4.61,0-.72.1-1.23.31-1.95.1-.72.41-1.74.61-2.35.41-1.13.92-2.25,1.33-3.38.41-.72.61-1.54.92-1.95.31-.61.41-.72.41-1.02.1-.31.1-.41.31-.61-.1-.31-.1-.61-.1-.72.1-.61.31-1.02.41-1.74.31-.72.61-1.74,1.13-2.97.61-1.43,1.33-2.87,2.05-4.2.92-1.54,1.74-3.07,2.76-4.5,1.02-1.54,2.25-2.97,3.48-4.2s2.35-2.56,3.99-3.69c1.13-1.02,2.46-1.95,3.99-2.56,1.13-.72,2.35-1.02,3.79-1.13,0,1.02-.1,2.15-.31,3.28-.1,1.23-.41,2.66-.61,4.2-.31,1.54-.41,3.07-.92,4.5-.41,1.54-.61,2.97-1.02,4.2l-5.12,2.87Z"
tools:ignore="VectorPath" />
</vector>
13 changes: 7 additions & 6 deletions app/src/main/res/drawable/icon_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:width="128dp"
xmlns:tools="http://schemas.android.com/tools"
android:width="128dp"
android:height="128dp"
android:viewportWidth="128"
android:viewportHeight="128">

<path
android:fillColor="#262535"
android:pathData="M83,44.1c-0.8-0.1-1.5,0.6-1.5,1.4c0,0.1,0,0.1,0,0.2v37.7c0,1.6-1.5,3.2-3.1,3.2H51.2 c-1.8,0-4-1.6-4-3.2v-3.6c0-1.6,1.8-2.6,3.7-2.6h25.9c0.8,0.1,1.5-0.6,1.5-1.4c0-0.1,0-0.1,0-0.2V43.7c0-3.6-2.5-5.9-6.2-5.9h-21 c-3.4,0-6.8,2-6.8,5.9v41c0.3,3,3.1,5.2,5.8,5.5h28.2c3.4,0,6.2-3,6.2-6.2V45.7C84.6,45,84,44.1,83,44.1z M77.1,80.4H51.9 c-0.9,0-1.5,0.7-1.5,1.6s0.7,1.6,1.5,1.6h25.3c0.9,0,1.5-0.7,1.5-1.6C78.7,81.2,78,80.4,77.1,80.4z" />
android:fillColor="#262535"
android:pathData="M83,44.1c-0.8-0.1-1.5,0.6-1.5,1.4c0,0.1,0,0.1,0,0.2v37.7c0,1.6-1.5,3.2-3.1,3.2H51.2 c-1.8,0-4-1.6-4-3.2v-3.6c0-1.6,1.8-2.6,3.7-2.6h25.9c0.8,0.1,1.5-0.6,1.5-1.4c0-0.1,0-0.1,0-0.2V43.7c0-3.6-2.5-5.9-6.2-5.9h-21 c-3.4,0-6.8,2-6.8,5.9v41c0.3,3,3.1,5.2,5.8,5.5h28.2c3.4,0,6.2-3,6.2-6.2V45.7C84.6,45,84,44.1,83,44.1z M77.1,80.4H51.9 c-0.9,0-1.5,0.7-1.5,1.6s0.7,1.6,1.5,1.6h25.3c0.9,0,1.5-0.7,1.5-1.6C78.7,81.2,78,80.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2.4-3s1.6-1.8,2.7-2.6c0.8-0.7,1.7-1.4,2.7-1.8c0.8-0.5,1.6-0.7,2.6-0.8c0,0.7-0.1,1.5-0.2,2.3 c-0.1,0.9-0.3,1.9-0.4,3c-0.2,1.1-0.3,2.2-0.6,3.2c-0.3,1.1-0.4,2.1-0.7,3L64.8,58.7z"
tools:ignore="VectorPath"/>
</vector>
33 changes: 33 additions & 0 deletions app/src/main/res/drawable/icon_foreground_splash.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:width="160dp"
android:height="160dp"
android:viewportWidth="160"
android:viewportHeight="160" >

<path
android:fillColor="#262535"
android:pathData="M107.34,51.95c-1.13-.1-2.25.82-2.25,1.95v53.44c0,2.25-2.25,4.5-4.5,4.5h-39.93c-2.66,
0-5.84-2.25-5.84-4.5v-5.12c0-2.25,2.66-3.69,5.43-3.69h37.98c1.13.1,2.25-.82,
2.25-1.95v-45.25c0-5.12-3.69-8.29-9.11-8.29h-30.82c-5.02,0-10.03,2.87-10.03,8.29v57.85c.41,
4.2,4.5,7.37,8.5,7.78h41.36c5.02,0,9.11-4.2,9.11-8.7v-54.06c.2-1.02-.72-2.25-2.15-2.25ZM98.63,
103.14h-36.96c-1.33,0-2.25,1.02-2.25,2.25s1.02,2.25,2.25,2.25h37.16c1.33,0,2.25-1.02,
2.25-2.25-.1-1.13-1.13-2.25-2.46-2.25Z"
/>
<path
android:fillColor="#FFFFFF"
android:pathData="M80.61,72.53c.41-.1,1.13-.41,1.64-.61.41-.1.92-.31,1.33-.41s.92-.31,1.13-.41l-.31,
1.84c-.1.41-.31.72-.41,1.13-.31.72-.41,1.13-.72,1.84-.31.61-.61,1.02-.92,1.43s-.61.82-1.02,1.23l-4.1,
1.23,3.48.72c-.41.41-.92.72-1.33,1.13s-1.02.72-1.43,1.13c-.61.41-1.13.72-1.74,1.02-.61.41-1.33.61-2.05.61s-1.43,
0-2.25-.1c-.72-.1-1.64-.31-2.35-.72.31-.41.41-.72.72-1.23.31-.41.41-.82.92-1.43.41-.61.72-1.13,
1.13-1.95,1.02-1.95,2.25-3.69,3.28-5.53s1.95-3.38,2.66-4.81c.92-1.74,1.74-3.28,2.66-4.61-1.02,
1.23-2.25,2.66-3.38,4.2-1.02,1.23-2.25,2.87-3.38,4.61-1.33,1.84-2.46,3.79-3.99,5.73-.31.41-.41.82-.92,
1.54-.41.61-.61,1.13-1.02,1.84s-.72,1.23-1.13,1.95-.72,1.43-1.13,1.95c-.92,1.54-1.74,3.07-2.76,4.61,
0-.72.1-1.23.31-1.95.1-.72.41-1.74.61-2.35.41-1.13.92-2.25,1.33-3.38.41-.72.61-1.54.92-1.95.31-.61.41
-.72.41-1.02.1-.31.1-.41.31-.61-.1-.31-.1-.61-.1-.72.1-.61.31-1.02.41-1.74.31-.72.61-1.74,1.13-2.97.61
-1.43,1.33-2.87,2.05-4.2.92-1.54,1.74-3.07,2.76-4.5,1.02-1.54,2.25-2.97,3.48-4.2s2.35-2.56,3.99-3.69c1.13-1.02,
2.46-1.95,3.99-2.56,1.13-.72,2.35-1.02,3.79-1.13,0,1.02-.1,2.15-.31,3.28-.1,1.23-.41,2.66-.61,4.2-.31,
1.54-.41,3.07-.92,4.5-.41,1.54-.61,2.97-1.02,4.2l-5.12,2.87Z"
tools:ignore="VectorPath" />
</vector>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#476FA8</color>
<color name="splash_background">#090A15</color>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#476FA8</color>
<color name="splash_background">#5c83ba</color>

<color name="md_theme_light_primary">#6750A4</color>
<color name="md_theme_light_onPrimary">#FFFFFF</color>
<color name="md_theme_light_primaryContainer">#E9DDFF</color>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/splash.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.LightNovelReader.Splash" parent="Theme.SplashScreen">
<item name="windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
<item name="windowSplashScreenBackground">#E4EBFF</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/icon_foreground_splash</item>
<item name="windowSplashScreenBackground">@color/splash_background</item>
<item name="postSplashScreenTheme">@style/Theme.LightNovelReader</item>
</style>
</resources>
Loading