You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compose's MyApplicationTheme already had a DarkColorScheme defined and
defaults to isSystemInDarkTheme(), but the activity-level XML theme was
hardcoded to android:Theme.Material.Light.NoActionBar — so cold-start
window background and the splash screen flashed bright cream regardless
of the system setting, then snapped to dark when Compose drew its first
frame.
- values/themes.xml: parameterise windowBackground via a color resource
rather than the hardcoded Light theme default.
- values/colors.xml: add window_background = #FFFBF0 (the cream we use
in light mode).
- values-night/themes.xml: dark-variant of Theme.MyApplication parented
on android:Theme.Material.NoActionBar.
- values-night/colors.xml: window_background and splash_background both
switch to #14110A — same deep warm-black as the Compose dark scheme
background, so the splash → app handoff is seamless.
Verified on the emulator with `cmd uimode night yes`: list, formatted
view, and the WYSIWYG editor all switch cleanly to dark, with all
formatting (heading sizes, inline B/I/U/S, tables, images, link colors,
checkbox states) still legible and on-brand.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments