Is there a way to make all buttons color for a spe...
# compose
a
Is there a way to make all buttons color for a specific page/Composable equal X color by default?
c
You can “redifine” your Theme values for a Subcomposition anywhere in your app
a
How to do so?
c
Just wrap your screen again with MaterialTheme (if you are using Material) or your Custom Theme
Copy code
MaterialTheme(
    colors = …,
    typography = …,
    shapes = …
) {
    // app content

    YourScreen() {
        MaterialTheme(
            colors = …,
        ) {
            // Now your screen is using the colors provided in the second MaterialTheme
        }
    }

}
s
Owl does this, you can draw some inspiration from there. Declaration, usage #1, #2 and so on.