How to change background of the whole window? I tr...
# compose-desktop
a
How to change background of the whole window? I tried to create a theme component, but that doesn't seem to have any effect (new to compose :p)
Copy code
Window(
    title = "Compose for Desktop",
) {
    DesktopMaterialTheme(colors = lightColors(background = Color.Cyan)) {
        Text("Test")
    }
}
message has been deleted
i
The only possible way now is to create Box with this color:
Copy code
Window(
    title = "Compose for Desktop",
) {
    DesktopMaterialTheme(colors = lightColors(background = Color.Cyan)) {
        Box(Modifier.fillMaxSize().background(MaterialTheme.colors.background)) {
            Text("Test")
        }
    }
}
a
Thanks