icon

abstract var icon: Any?(source)

The tray icon which could be icon bytes or path to the icon file.

Note that you may need the image-ico or image-png Cargo features to use this API. To enable it, change your Cargo.toml file:

[dependencies]
tauri = { version = "...", features = ["...", "image-png"] }