Browse Source

Theme detection logic.

update-web-docs
Nikolay Igotti 3 years ago
parent
commit
eadbe8daed
  1. 5
      examples/widgetsgallery/common/src/desktopMain/kotlin/org/jetbrains/compose/demo/widgets/platform/System.kt

5
examples/widgetsgallery/common/src/desktopMain/kotlin/org/jetbrains/compose/demo/widgets/platform/System.kt

@ -1,4 +1,5 @@
package org.jetbrains.compose.demo.widgets.platform
// TODO: https://github.com/JetBrains/compose-jb/issues/169
actual fun isSystemInDarkTheme(): Boolean = false
import org.jetbrains.skiko.SystemTheme
actual fun isSystemInDarkTheme(): Boolean = org.jetbrains.skiko.currentSystemTheme == SystemTheme.DARK
Loading…
Cancel
Save