Skip to content

Commit 8ba5403

Browse files
authored
Merge pull request #484 from JetBrains/macos-sys-theme
Set desktop light/dark theme based on macOS system theme
2 parents 5afcd26 + a3796fd commit 8ba5403

File tree

1 file changed

+2
-0
lines changed
  • shared/src/jvmMain/kotlin/org/jetbrains/kotlinconf

1 file changed

+2
-0
lines changed

shared/src/jvmMain/kotlin/org/jetbrains/kotlinconf/main.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class JvmLogger : Logger {
3333
fun main() {
3434
initApp(JvmLogger(), platformModule, Flags(supportsNotifications = false))
3535

36+
System.setProperty("apple.awt.application.appearance", "system")
37+
3638
application {
3739
Window(
3840
onCloseRequest = ::exitApplication,

0 commit comments

Comments
 (0)