Browse Source

Update README.md

pull/2154/head
Igor Demin 3 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()
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')
}
}
@ -204,7 +204,7 @@ fun main() = application {
}
}
object TrayIcon : Painter() {
object AboutIcon : Painter() {
override val intrinsicSize = Size(256f, 256f)
override fun DrawScope.onDraw() {

Loading…
Cancel
Save