Skip to content

Commit 841a522

Browse files
committed
example: jvm: Add missing window icon
1 parent 2a20fb7 commit 841a522

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
43.8 KB
Loading

example/src/desktopMain/kotlin/Main.desktop.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import androidx.compose.ui.window.Window
88
import androidx.compose.ui.window.WindowPosition
99
import androidx.compose.ui.window.application
1010
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
1114

1215
fun main() =
1316
application {
@@ -20,6 +23,7 @@ fun main() =
2023
state = state,
2124
onCloseRequest = ::exitApplication,
2225
title = "Miuix",
26+
icon = painterResource(Res.drawable.icon),
2327
) {
2428
App()
2529
}

0 commit comments

Comments
 (0)