Browse Source
* Widgets gallery: fix for mismatched @Composable annotation * Widgets gallery: remove isSystemInDarkTheme expect functionrelease/1.4.2
Nikita Lipsky
1 year ago
committed by
Igor Demin
4 changed files with 1 additions and 19 deletions
@ -1,8 +0,0 @@
|
||||
package org.jetbrains.compose.demo.widgets.platform |
||||
|
||||
import androidx.compose.runtime.Composable |
||||
import androidx.compose.foundation.isSystemInDarkTheme as androidSystemIsInDarkTheme |
||||
|
||||
@Composable |
||||
actual fun isSystemInDarkTheme(): Boolean = |
||||
androidSystemIsInDarkTheme() |
@ -1,3 +0,0 @@
|
||||
package org.jetbrains.compose.demo.widgets.platform |
||||
|
||||
expect fun isSystemInDarkTheme(): Boolean |
@ -1,7 +0,0 @@
|
||||
package org.jetbrains.compose.demo.widgets.platform |
||||
|
||||
import androidx.compose.runtime.Composable |
||||
import org.jetbrains.skiko.SystemTheme |
||||
|
||||
@Composable |
||||
actual fun isSystemInDarkTheme(): Boolean = org.jetbrains.skiko.currentSystemTheme == SystemTheme.DARK |
Loading…
Reference in new issue