We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when setting a system tray icon using a JPG image, the color rendering is incorrect.
The same operation works as expected with PNG images.
Expected:
Png file
Jpg file.
run example code
No response
package main import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/driver/desktop" "fyne.io/fyne/v2/widget" ) func main() { a := app.New() w := a.NewWindow("SysTray") //icon, _ := fyne.LoadResourceFromPath("./assets/icon.jpg") icon, _ := fyne.LoadResourceFromPath("./assets/icon.png") if desk, ok := a.(desktop.App); ok { m := fyne.NewMenu("MyApp", fyne.NewMenuItem("Show", func() { w.Show() })) desk.SetSystemTrayMenu(m) desk.SetSystemTrayIcon(icon) } w.SetContent(widget.NewLabel("Fyne System Tray")) w.SetCloseIntercept(func() { w.Hide() }) w.ShowAndRun() }
2.4.4
1.20
Kubuntu 22.04
seems like green and red were swapped for jpg image
if i swap green and red in argbForImage.
argbForImage
the result looks like this.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checklist
Describe the bug
when setting a system tray icon using a JPG image, the color rendering is incorrect.
The same operation works as expected with PNG images.
Expected:
Png file
Jpg file.
How to reproduce
run example code
Screenshots
No response
Example code
Fyne version
2.4.4
Go compiler version
1.20
Operating system and version
Kubuntu 22.04
Additional Information
seems like green and red were swapped for jpg image
if i swap green and red in
argbForImage
.the result looks like this.
The text was updated successfully, but these errors were encountered: