Closed StefanOltmann closed 1 month ago
You can control this by setting the "apple.awt.application.appearance" system property to "system", e.g. by passing -Dapple.awt.application.appearance=system
to Java.
You can take a look at https://github.com/jetBrains/jewel. I use it for title bar styling. Pretty flexible tool that allows you to fully customize title bar while maintaining native-looking window decorations
@StefanOltmann Can we close this?
@m-sasha The option works. I would suggest to add this per default.
If you don't think this should be a default, we can close the issue.
I don't think this is such a big deal that breaking existing apps is worth it.
The same issue encountered by an internal user.
If not changing default, we should provide docs/API (apple.awt.application.appearance
is an AWT constant, which is implementation details) and change templates. Though, changing the default is also an option, we can't avoid behaviour changes between versions.
Actually, we have an older issue. Let's keep only it: https://github.com/JetBrains/compose-multiplatform/issues/3928
Sorry, @igordmn, I did not find the other issue back then.
The
androidx.compose.ui.window.Window
should follow the system theme or provide a boolean to enable the dark mode.Right now it's always in light mode. At least for macOS.