Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Use material3 with dynamic colors in splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
M3DZIK committed Oct 14, 2023
1 parent 1fa98b5 commit 22feac8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ dependencies {
implementation(libs.medzik.android.utils)
implementation(libs.process.phoenix)

// for splash screen with material3 and dynamic color
implementation(libs.google.material)

debugImplementation(libs.androidx.ui.test.manifest)

// for preview support
Expand Down
8 changes: 2 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" >

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />

<application
Expand All @@ -10,8 +8,7 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.LibrePass"
tools:targetApi="31" >
android:theme="@style/Theme.LibrePass">
<activity
android:name=".MainActivity"
android:exported="true"
Expand All @@ -23,5 +20,4 @@
</intent-filter>
</activity>
</application>

</manifest>
2 changes: 1 addition & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.LibrePass" parent="android:Theme.Material.NoActionBar" />
<style name="Theme.LibrePass" parent="Theme.Material3.DynamicColors.DayNight" />
</resources>
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ androidx-room = "2.5.2"
coil-compose = "2.4.0"
commons-codec = "1.16.0"
google-accompanist = "0.32.0"
google-material = "1.10.0"
jakewharton-process-phoenix = "2.1.2"
kotlinx-coroutines-android = "1.7.3"
librepass-client = "0.1.0-SNAPSHOT-10"
Expand Down Expand Up @@ -49,6 +50,7 @@ coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil-compose
commons-codec = { module = "commons-codec:commons-codec", version.ref = "commons-codec" }
google-accompanist-drawablepainter = { module = "com.google.accompanist:accompanist-drawablepainter", version.ref = "google-accompanist" }
google-accompanist-systemuicontroller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "google-accompanist" }
google-material = { module = "com.google.android.material:material", version.ref = "google-material" }
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinx-coroutines-android" }
librepass-client = { module = "dev.medzik.librepass:client", version.ref = "librepass-client" }
medzik-android-components = { module = "dev.medzik.android:components", version.ref = "medzik-android-utils" }
Expand Down

0 comments on commit 22feac8

Please sign in to comment.