https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
o

Oskar

11/13/2023, 11:38 AM
Hi all, I am trying to make my desktop app dark theme aware. Right now I am struggling to make the title bar follow the system theme. For macOS It works perfect by adding this argument in my gradle file:
Copy code
macOS {
    jvmArgs(
        "-Dapple.awt.application.appearance=system"
    )
}
Is there some equivalent setting to also make it work on Windows? Or maybe some other way to set it in code?
a

alexfacciorusso

11/13/2023, 6:24 PM
For Windows you can try https://github.com/ComposeNativeLook/compose-native-look (it's a fork of ComposeWindowStyler updated by me)
👍 1
o

Oskar

11/14/2023, 8:45 AM
Thanks, I will check it out
2 Views