Skip to content
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/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.Snowflake">
android:theme="@style/Theme.Snowflake.Splash">
<activity
android:name=".ui.MainActivity"
android:exported="true"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/io/bloco/snowflake/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalLayoutDirection
import androidx.core.net.toUri
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.lifecycle.viewmodel.compose.viewModel
import androidx.navigation.compose.rememberNavController
Expand All @@ -36,6 +37,7 @@ class MainActivity : ComponentActivity() {
private val dependencies by lazy { (applicationContext as App).dependencies }

override fun onCreate(savedInstanceState: Bundle?) {
installSplashScreen()
super.onCreate(savedInstanceState)
enableEdgeToEdge()

Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/io/bloco/snowflake/ui/home/HomeScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ private fun Stats(
} else {
stringResource(R.string.snowflake_looking_to_help)
}
} else null,
} else {
null
},
)
StatsCell(
title = stringResource(R.string.snowflake_stats_connections),
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Snowflake.Splash" parent="Theme.SplashScreen.IconBackground">
<item name="windowSplashScreenBackground">#FF000000</item>
<item name="postSplashScreenTheme">@style/Theme.Snowflake</item>
</style>
<style name="Theme.Snowflake" parent="android:Theme.Material.NoActionBar" />
</resources>
6 changes: 5 additions & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Snowflake.Splash" parent="Theme.SplashScreen.IconBackground">
<item name="windowSplashScreenBackground">#FFF5EDDD</item>
<item name="postSplashScreenTheme">@style/Theme.Snowflake</item>
</style>
<style name="Theme.Snowflake" parent="android:Theme.Material.Light.NoActionBar" />
</resources>
</resources>
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ androidx-compose-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-
androidx-compose-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
androidx-compose-material3 = { group = "androidx.compose.material3", name = "material3" }
androidx-compose-material3-adaptive = { group = "androidx.compose.material3.adaptive", name = "adaptive" }
androidx-splash = { group = "androidx.core", name = "core-splashscreen", version = "1.2.0" }
androidx-lifecycle-process = { group = "androidx.lifecycle", name = "lifecycle-process", version.ref = "lifecycleProcess" }
androidx-navigation = { group = "androidx.navigation", name = "navigation-compose", version = "2.9.8" }
androidx-work = { group = "androidx.work", name = "work-runtime-ktx", version = "2.11.2" }
Expand Down Expand Up @@ -71,6 +72,7 @@ androidx = [
"androidx-compose-ui-test-junit4",
"androidx-compose-material3",
"androidx-compose-material3-adaptive",
"androidx-splash",
"androidx-lifecycle-process",
"androidx-navigation",
"androidx-work",
Expand Down
Loading