Can I change the background color of the window? :...
# compose-desktop
t
Can I change the background color of the window? 🧵
Wenn I use a Box with backgroundcolor modifier it results in this weard thing where it shows a white Line (the real background color of the window) on the bottom of the screen
I guess this is the result of rounding to pixels but it resolves in an unwanted behavior
i
Currently it is the only way. This was supposed to help:
Copy code
fun main() = SwingUtilities.invokeLater {
    val window = AppWindow()
    window.window.background = java.awt.Color.BLACK
    window.window.contentPane.background = java.awt.Color.BLACK
    window.show {
        Box(Modifier.fillMaxSize().background(Color.Black))
    }
}
But we still have a white line. It disappears only after resize. A white line isn't pretty, so we will figure something in the future. Maybe it is the issue in our renderer.
👍 1
t
Should I create an issue on github for it?
i
Should I create an issue on github for it?
It would be helpful, thanks 🙂 P.S. But there is more important tasks, so probably it will be not in our priority. But it will help us not to forget about this, and maybe, if it will be a popular issue, we can give more effort to fix the issue 🙂
t
greate I will and I completely understand that there are more important things 😁
a
still no updated?