storage: demo: Inherit M3 theme
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
2b5ca5ebdc
commit
bfdb297ca4
3 changed files with 4 additions and 2 deletions
|
@ -9,6 +9,7 @@ import android.app.Application
|
||||||
import android.os.StrictMode
|
import android.os.StrictMode
|
||||||
import android.os.StrictMode.VmPolicy
|
import android.os.StrictMode.VmPolicy
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
import com.google.android.material.color.DynamicColors
|
||||||
import de.grobox.storagebackuptester.crypto.KeyManager
|
import de.grobox.storagebackuptester.crypto.KeyManager
|
||||||
import de.grobox.storagebackuptester.plugin.TestSafBackend
|
import de.grobox.storagebackuptester.plugin.TestSafBackend
|
||||||
import de.grobox.storagebackuptester.settings.SettingsManager
|
import de.grobox.storagebackuptester.settings.SettingsManager
|
||||||
|
@ -26,6 +27,7 @@ class App : Application() {
|
||||||
|
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
|
DynamicColors.applyToActivitiesIfAvailable(this)
|
||||||
StrictMode.setThreadPolicy(
|
StrictMode.setThreadPolicy(
|
||||||
StrictMode.ThreadPolicy.Builder()
|
StrictMode.ThreadPolicy.Builder()
|
||||||
.detectAll()
|
.detectAll()
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-->
|
-->
|
||||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||||
<!-- Base application theme. -->
|
<!-- Base application theme. -->
|
||||||
<style name="Theme.StorageBackupTester" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
<style name="Theme.StorageBackupTester" parent="Theme.Material3.DayNight.NoActionBar">
|
||||||
<!-- Primary brand color. -->
|
<!-- Primary brand color. -->
|
||||||
<item name="colorPrimary">@color/matrix</item>
|
<item name="colorPrimary">@color/matrix</item>
|
||||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-->
|
-->
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="Theme.StorageBackupTester" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
<style name="Theme.StorageBackupTester" parent="Theme.Material3.DayNight.NoActionBar">
|
||||||
<item name="colorPrimary">@color/matrix</item>
|
<item name="colorPrimary">@color/matrix</item>
|
||||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||||
<item name="colorOnPrimary">@color/white</item>
|
<item name="colorOnPrimary">@color/white</item>
|
||||||
|
|
Loading…
Reference in a new issue