Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / library / src / main / res / values-night / themes.xml

themes.xml25 lines · 1.5 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<resources>
3
4 <!-- Night twin of Theme.General: same style, dark Material parent, so the pre-first-frame
5 window is dark in dark mode instead of flashing white. Splash attrs mirror day so the
6 icon is forced on with a dark background and the white launcher disc behind it. -->
7 <style name="Theme.General" parent="android:Theme.Material.NoActionBar">
8 <item name="android:windowSoftInputMode">stateUnchanged</item>
9 <item name="android:windowSplashScreenBackground">?android:attr/colorBackground</item>
10 <item name="android:windowSplashScreenIconBackgroundColor">@color/ic_launcher_background</item>
11 <!-- windowSplashScreenBehavior is API 33+; it lives in values-night-v33/themes.xml. -->
12 </style>
13
14 <!-- Transparent host for headless prompt activities (passwords' CableActivity):
15 no content is ever set, only a system BiometricPrompt is shown, so the
16 window must not paint an opaque background over the calling app. -->
17 <style name="Theme.General.Translucent" parent="android:Theme.Material.NoActionBar">
18 <item name="android:windowIsTranslucent">true</item>
19 <item name="android:windowBackground">@android:color/transparent</item>
20 <item name="android:windowContentOverlay">@null</item>
21 <item name="android:windowNoTitle">true</item>
22 <item name="android:windowIsFloating">false</item>
23 <item name="android:backgroundDimEnabled">false</item>
24 </style>
25</resources>