styles.xml

1.5 KB · raw

1<?xml version="1.0" encoding="utf-8"?>2<resources xmlns:tools="http://schemas.android.com/tools">3    <style name="Theme.Peach.Splash" parent="Theme.SplashScreen">4        <item name="windowSplashScreenBackground">@color/bg</item>5        <item name="windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>6        <item name="postSplashScreenTheme">@style/Theme.Peach</item>7    </style>89    <!-- Not DayNight: Peach is dark-only, so the platform theme must not follow10         the device's day/night mode for the attrs Compose does not override. -->11    <style name="Theme.Peach" parent="Theme.MaterialComponents.NoActionBar">12        <item name="android:windowBackground">@color/bg</item>13        <item name="android:statusBarColor">@android:color/transparent</item>14        <item name="android:navigationBarColor">@android:color/transparent</item>15        <item name="android:windowLightStatusBar">false</item>16        <item name="android:windowLightNavigationBar" tools:targetApi="27">false</item>17    </style>1819    <!-- Translucent host for the autofill bottom sheet — the app/IME stays20         visible behind the dimming scrim the ModalBottomSheet draws. -->21    <style name="Theme.Peach.Transparent" parent="Theme.Peach">22        <item name="android:windowBackground">@android:color/transparent</item>23        <item name="android:windowIsTranslucent">true</item>24        <item name="android:windowIsFloating">false</item>25        <item name="android:backgroundDimEnabled">false</item>26    </style>27</resources>