Chrome Drawn Outside The Theme Scope

A custom window title bar, splash, or crash dialog composed as a sibling of the app theme rather than inside it reads MaterialTheme's framework DEFAULT scheme — light, always, no matter what the user picked — and nothing errors. Covers extracting the stored-mode-to-boolean decision as one shared composable function so the chrome and the theme cannot answer differently, passing colours in as parameters instead of re-theming, and the colours that must deliberately not follow the theme at all. Use when a title bar or dialog stays light in dark mode, when chrome colours lag one launch behind the setting, or before adding any composable above the theme call.

maxrave-dev db6791c 8.5 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/chrome-drawn-outside-the-theme-scope commit db6791c110

Frequently asked questions

npx skillmds@latest add maxrave-dev/chrome-drawn-outside-the-theme-scope