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

关于MessageDialog内MessageDialogOptions配置Icon未生效 #3576

Open
asdfjsdklf opened this issue Jun 28, 2024 · 0 comments
Open

关于MessageDialog内MessageDialogOptions配置Icon未生效 #3576

asdfjsdklf opened this issue Jun 28, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@asdfjsdklf
Copy link

Description

在MessageDialogOptions内配置的Icon未生效

To Reproduce

icon, _ := os.ReadFile("logo.png")
fmt.Println(icon)
result, _ := runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
Type: msg_type,
Title: "xxxxxx",
Message: msg,
DefaultButton: "OK",
Icon: icon,
})

Expected behaviour

希望能正确的显示MessageDialog的icon

Screenshots

No response

Attempted Fixes

No response

System Details

fmt.Println(icon)
	result, _ := runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
		Type:          msg_type,
		Title:         "xxxxxx",
		Message:       msg,
		DefaultButton: "OK",
		Icon:          icon,
	})

Additional context

No response

@asdfjsdklf asdfjsdklf added the Bug Something isn't working label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant