mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Update README.md
This commit is contained in:
@@ -107,7 +107,6 @@ object TrayIcon : Painter() {
|
||||
Please note, that it is possible to create a Tray application without Window:
|
||||
|
||||
```kotlin
|
||||
import androidx.compose.ui.ExperimentalComposeUiApi
|
||||
import androidx.compose.ui.geometry.Size
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.drawscope.DrawScope
|
||||
@@ -115,7 +114,6 @@ import androidx.compose.ui.graphics.painter.Painter
|
||||
import androidx.compose.ui.window.Tray
|
||||
import androidx.compose.ui.window.application
|
||||
|
||||
@OptIn(ExperimentalComposeUiApi::class, androidx.compose.foundation.ExperimentalFoundationApi::class)
|
||||
fun main() = application {
|
||||
Tray(
|
||||
icon = TrayIcon,
|
||||
|
||||
Reference in New Issue
Block a user