themes: replace Material3 view themes with platform DeviceDefault base

Theme.Material3.* and Theme.MaterialComponents.* are from the
Material view library which is not in the AOSP prebuilts.

The wizard is Compose-only so the XML theme only needs to control
window properties (background, transparent bars). All Material3
colour/typography tokens are applied inside Compose.

Also removes values-v21/v23/v31 overrides — minSdk=31 makes v21/v23
unreachable, and v31 only existed for the removed splash screen dep.
This commit is contained in:
oxmc
2026-06-17 02:47:37 -07:00
parent b11cf5b947
commit ba7dabeb39
4 changed files with 11 additions and 41 deletions
-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.SetupWizard" parent="Theme.Material3.Dark.NoActionBar">
<item name="android:statusBarColor">?attr/colorPrimary</item>
</style>
</resources>
-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.SetupWizard" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<!-- Enable light icons if status bar is dark -->
<item name="android:windowLightStatusBar">false</item>
</style>
</resources>
-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.SetupWizard.Splash" parent="Theme.Material3.DayNight">
<item name="android:windowSplashScreenBackground">@color/lavender_500</item>
<item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
<item name="android:windowSplashScreenIconBackgroundColor">@color/lavender_secondary</item>
<item name="postSplashScreenTheme">@style/Theme.SetupWizard</item>
</style>
</resources>
+11 -19
View File
@@ -1,22 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Dark Theme -->
<style name="Theme.SetupWizard" parent="Theme.Material3.Dark.NoActionBar">
<item name="colorPrimary">@color/lavender_200</item>
<item name="colorOnPrimary">@color/lavender_on_primary_dark</item>
<item name="colorSecondary">@color/lavender_secondary_dark</item>
<item name="colorOnSecondary">@color/lavender_on_secondary_dark</item>
<item name="android:colorBackground">@color/lavender_background_dark</item>
<item name="colorOnBackground">@color/lavender_on_background_dark</item>
<!--
Window container theme for the Compose-based setup wizard.
All Material3 colour/typography tokens are applied in Compose code;
this XML theme only controls platform window properties.
-->
<style name="Theme.SetupWizard" parent="android:Theme.DeviceDefault.NoActionBar">
<item name="android:windowBackground">@color/lavender_background_dark</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style>
<!-- Light Theme -->
<style name="Theme.SetupWizard.Light" parent="Theme.Material3.Light.NoActionBar">
<item name="colorPrimary">@color/lavender_500</item>
<item name="colorOnPrimary">@color/lavender_on_primary</item>
<item name="colorSecondary">@color/lavender_secondary</item>
<item name="colorOnSecondary">@color/lavender_on_secondary</item>
<item name="android:colorBackground">@color/lavender_background</item>
<item name="colorOnBackground">@color/lavender_on_background</item>
</style>
</resources>
</resources>