How can I remove windows title bar or customize it in compose desktop?
Asked Answered
G

1

6

I want to remove windows default title bar so I can create my own that matches my application. I searched around but couldn't find anything.

Thanks

Genovera answered 24/9, 2021 at 3:41 Comment(0)
K
6

To remove it you can use undecorated argument for Window:

fun main() = application {
    Window(
        onCloseRequest = ::exitApplication,
        undecorated = true,
    ) {
        App()
    }
}
Kitchen answered 25/9, 2021 at 8:40 Comment(1)
i replaced my own custom TopBar with default one. now i can not move the window any moreEsme

© 2022 - 2024 — McMap. All rights reserved.