Fix #35.
This commit is contained in:
parent
fc4cc53c87
commit
62e66e7fbd
1 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue