Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: WebView.SetIcon #46

Open
quadrimus opened this issue Jun 8, 2024 · 0 comments
Open

Proposal: WebView.SetIcon #46

quadrimus opened this issue Jun 8, 2024 · 0 comments

Comments

@quadrimus
Copy link

quadrimus commented Jun 8, 2024

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: #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant