File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
app/src/processing/app/ui Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ class Start {
4646 var visible by remember { mutableStateOf(false ) }
4747 val composition = rememberCoroutineScope()
4848 LaunchedEffect (Unit ) {
49+ Toolkit .setIcon(window)
50+
4951 visible = true
5052 composition.launch {
5153 delay(duration.toLong() + timeMargin)
Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ import androidx.compose.ui.window.WindowPosition
1919import androidx.compose.ui.window.application
2020import androidx.compose.ui.window.rememberWindowState
2121import com.formdev.flatlaf.util.SystemInfo
22+ import processing.app.ui.Toolkit
2223import java.awt.Dimension
2324
2425import javax.swing.JFrame
26+ import javax.swing.JRootPane
2527import kotlin.reflect.KClass
2628
2729val LocalWindow = compositionLocalOf<JFrame > { error(" No Window Set" ) }
@@ -116,6 +118,7 @@ private fun PDEWindowContent(
116118 remember {
117119 window.rootPane.putClientProperty(" apple.awt.fullWindowContent" , mac && fullWindowContent)
118120 window.rootPane.putClientProperty(" apple.awt.transparentTitleBar" , mac && fullWindowContent)
121+ Toolkit .setIcon(window)
119122 }
120123 if (unique != null && windows.contains(unique) && windows[unique] != null ){
121124 windows[unique]?.toFront()
You can’t perform that action at this time.
0 commit comments