File tree Expand file tree Collapse file tree 3 files changed +1
-5
lines changed
iosMain/kotlin/dev/icerock/moko/resources/compose
macosMain/kotlin/dev/icerock/moko/resources/compose Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ should [add `export` declarations](https://kotlinlang.org/docs/multiplatform-bui
134134```
135135framework {
136136 export("dev.icerock.moko:resources:0.25.1")
137- export("dev.icerock.moko:graphics:0.9 .0") // toUIColor here
137+ export("dev.icerock.moko:graphics:0.10 .0") // toUIColor here
138138}
139139```
140140
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ import platform.UIKit.UIColor
2222@OptIn(ExperimentalForeignApi ::class )
2323@Composable
2424actual fun colorResource (resource : ColorResource ): Color {
25- // TODO https://github.com/icerockdev/moko-resources/issues/443
26- // recompose when appearance changed (now not works in runtime!)
2725 val darkMode: Boolean = isSystemInDarkTheme()
2826 return remember(resource, darkMode) {
2927 val uiColor: UIColor = resource.getUIColor()
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ import platform.AppKit.NSColorSpace.Companion.deviceRGBColorSpace
1515
1616@Composable
1717actual fun colorResource (resource : ColorResource ): Color {
18- // TODO https://github.com/icerockdev/moko-resources/issues/443
19- // recompose when appearance changed (now not works in runtime!)
2018 val darkMode: Boolean = isSystemInDarkTheme()
2119 return remember(resource, darkMode) {
2220 val nsColor: NSColor = resource.getNSColor()
You can’t perform that action at this time.
0 commit comments