Browse Source

Update README.md

pull/1532/head
Igor Demin 3 years ago committed by GitHub
parent
commit
b5fb48a6d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tutorials/Tray_Notifications_MenuBar_new/README.md

2
tutorials/Tray_Notifications_MenuBar_new/README.md

@ -107,7 +107,6 @@ object TrayIcon : Painter() {
Please note, that it is possible to create a Tray application without Window: Please note, that it is possible to create a Tray application without Window:
```kotlin ```kotlin
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.geometry.Size import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.DrawScope 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.Tray
import androidx.compose.ui.window.application import androidx.compose.ui.window.application
@OptIn(ExperimentalComposeUiApi::class, androidx.compose.foundation.ExperimentalFoundationApi::class)
fun main() = application { fun main() = application {
Tray( Tray(
icon = TrayIcon, icon = TrayIcon,

Loading…
Cancel
Save