webview_go icon indicating copy to clipboard operation
webview_go copied to clipboard

Proposal: WebView.SetIcon

Open dark-pink opened this issue 8 months ago • 0 comments

Add new method SetIcon to set window icon image.

Type and parameter IconKind allows to specify usage of icon (if supported).

// IconKind is used to specify usage of icon.
type IconKind int

const (
	IconKindDefault = IconKind(iota)
	IconKindSmaller
)

type WebView interface {
	// SetIcon updates the icon of the native window. Must be called from the UI
	// thread.
	SetIcon(icon image.Image, kind IconKind)

	// ...
}

Pull request: https://github.com/webview/webview_go/pull/47

dark-pink avatar Jun 08 '24 08:06 dark-pink