Browse Source

Update README.md

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

4
tutorials/Tray_Notifications_MenuBar_new/README.md

@ -189,7 +189,7 @@ fun main() = application {
} }
} }
Separator() Separator()
Item("About", icon = TrayIcon, onClick = { action = "Last action: About" }) Item("About", icon = AboutIcon, onClick = { action = "Last action: About" })
Item("Exit", onClick = { isOpen = false }, shortcut = KeyShortcut(Key.Escape), mnemonic = 'E') Item("Exit", onClick = { isOpen = false }, shortcut = KeyShortcut(Key.Escape), mnemonic = 'E')
} }
} }
@ -204,7 +204,7 @@ fun main() = application {
} }
} }
object TrayIcon : Painter() { object AboutIcon : Painter() {
override val intrinsicSize = Size(256f, 256f) override val intrinsicSize = Size(256f, 256f)
override fun DrawScope.onDraw() { override fun DrawScope.onDraw() {

Loading…
Cancel
Save