We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a20fb7 commit 841a522Copy full SHA for 841a522
example/src/desktopMain/composeResources/drawable/icon.png
43.8 KB
example/src/desktopMain/kotlin/Main.desktop.kt
@@ -8,6 +8,9 @@ import androidx.compose.ui.window.Window
8
import androidx.compose.ui.window.WindowPosition
9
import androidx.compose.ui.window.application
10
import androidx.compose.ui.window.rememberWindowState
11
+import org.jetbrains.compose.resources.painterResource
12
+import top.yukonga.miuix.kmp.example.generated.resources.Res
13
+import top.yukonga.miuix.kmp.example.generated.resources.icon
14
15
fun main() =
16
application {
@@ -20,6 +23,7 @@ fun main() =
20
23
state = state,
21
24
onCloseRequest = ::exitApplication,
22
25
title = "Miuix",
26
+ icon = painterResource(Res.drawable.icon),
27
) {
28
App()
29
}
0 commit comments