Skip to content

chore: update XML app theme to Material 3 - #527

Merged
hopeman15 merged 1 commit into
mainfrom
chore/material3-xml-theme
Sep 5, 2026
Merged

chore: update XML app theme to Material 3#527
hopeman15 merged 1 commit into
mainfrom
chore/material3-xml-theme

Conversation

@hopeman15

Copy link
Copy Markdown
Collaborator

Description

The app's XML theme parented android:Theme.Material.Light.NoActionBar — the platform Material 1 theme — while the rest of the project is Compose Material 3. This switches it to Theme.Material3.DayNight.NoActionBar, so the pre-Compose window frame matches the app and follows the system dark setting the same way CuriosityTheme already does via isSystemInDarkTheme().

Theme.Material3.* is a library resource (the Android platform ships no M3 theme), so this adds com.google.android.material:material 1.14.0 to the app module. It is used for the XML theme only — no Kotlin or Compose code changed, and the library modules (curiosity, navigation, settings) stay Compose-only.

UI

No Compose UI changes. The only visible difference is the window background drawn before Compose takes over, which now respects dark mode instead of always being light.

Review checklist

  • PR is split into meaningful commits for the ease of reviewing
  • Tests have been written — no behaviour to test; verified with make all
  • Screenshots added (where applicable)
  • Appropriate labels have been applied

The app theme parented `android:Theme.Material.Light.NoActionBar`, the
platform Material 1 theme, while the rest of the project is Compose
Material 3. Switch it to `Theme.Material3.DayNight.NoActionBar` so the
pre-Compose window frame matches the app, and follows the system dark
setting like `CuriosityTheme` already does.

`Theme.Material3.*` is a library resource, so this requires
`com.google.android.material:material` in the app module. It is used for
the XML theme only; the library modules stay Compose-only.
@hopeman15
hopeman15 enabled auto-merge (squash) September 5, 2026 08:19
@hopeman15
hopeman15 merged commit c13152d into main Sep 5, 2026
6 checks passed
@hopeman15
hopeman15 deleted the chore/material3-xml-theme branch September 5, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant