This commit is contained in:
Nuno Cruces 2022-07-26 17:02:42 +01:00
parent fc4cc53c87
commit 62e66e7fbd

View file

@ -160,7 +160,8 @@ const (
// Icon returns an Option to set the dialog icon. // Icon returns an Option to set the dialog icon.
// //
// Icon accepts a DialogIcon, or a string. // Icon accepts a DialogIcon, or a string.
// The string can be a GTK icon name (Unix), or a path (Windows and macOS). // The string can be a GTK icon name (Unix), or a file path (Windows and macOS).
// Supported file formats depend on the plaftorm, but PNG should be cross-platform.
func Icon(icon any) Option { func Icon(icon any) Option {
switch icon.(type) { switch icon.(type) {
case DialogIcon, string: case DialogIcon, string:
@ -172,7 +173,8 @@ func Icon(icon any) Option {
// WindowIcon returns an Option to set the window icon. // WindowIcon returns an Option to set the window icon.
// //
// WindowIcon accepts a DialogIcon, or a string path. // WindowIcon accepts a DialogIcon, or a string file path.
// Supported file formats depend on the plaftorm, but PNG should be cross-platform.
func WindowIcon(icon any) Option { func WindowIcon(icon any) Option {
switch icon.(type) { switch icon.(type) {
case DialogIcon, string: case DialogIcon, string: