Code Monkey home page Code Monkey logo

Comments (12)

dustinkredmond avatar dustinkredmond commented on September 15, 2024

Are you using a transparent PNG for the image?

from fxtrayicon.

DBChoco avatar DBChoco commented on September 15, 2024

Yes I am, shouldn't I ?

from fxtrayicon.

dustinkredmond avatar dustinkredmond commented on September 15, 2024

It would have been my suggestion to do exactly this (use a transparent PNG). Unfortunately, FXTrayIcon is merely an abstraction for the AWT TrayIcon, so any issue such as this one should be submitted as a bug report against the AWT implementation. It may be possible to try other formats for you desktop environment, but unfortunately this is not a bug that the maintainers of this particular library are able to address.

from fxtrayicon.

EasyG0ing1 avatar EasyG0ing1 commented on September 15, 2024

@DBChoco - Have you tested it using one of the built-in tray icons to see if the behavior is the same? Because even though you might have a transparent png image as your icon, it might have pixels in it with an opacity low enough that it would not show up under normal viewing, but in certain circumstances, those pixels might get highlighted. So I would try with one of the built-in icons just to be sure that the behavior is consistent regardless of the icon image used.

There is a ready-to-run test app under src/test... called DefaultIconTest, I would run that and see if the behavior is still the same.

from fxtrayicon.

DBChoco avatar DBChoco commented on September 15, 2024

@DBChoco - Have you tested it using one of the built-in tray icons to see if the behavior is the same? Because even though you might have a transparent png image as your icon, it might have pixels in it with an opacity low enough that it would not show up under normal viewing, but in certain circumstances, those pixels might get highlighted. So I would try with one of the built-in icons just to be sure that the behavior is consistent regardless of the icon image used.

There is a ready-to-run test app under src/test... called DefaultIconTest, I would run that and see if the behavior is still the same.

Hi there, I just tested the default icon, and I have the same result: https://i.imgur.com/AA3Ihif.png
I couldn't get it on a screenshot but even the menu items look really bad, like out of Windows 95.

It's really a shame since it seems like there is no direct solution, should I close the issue ?

from fxtrayicon.

EasyG0ing1 avatar EasyG0ing1 commented on September 15, 2024

@DBChoco - I just ran the DefaultIcon code on a Windows 11 virtual machine and I'm not seeing the same behavior that you're seeing ... could it be something with your particular setup in Windows?
Screen Shot 2022-05-08 at 12 19 08 PM

from fxtrayicon.

DBChoco avatar DBChoco commented on September 15, 2024

@EasyG0ing1 I'm actually on XFCE (arch linux), isn't it supported ?

from fxtrayicon.

EasyG0ing1 avatar EasyG0ing1 commented on September 15, 2024

@DBChoco - Anything Linux and JavaFX can be ... "mystery meat" ... but then mix FX with AWT and all bets are off for anything consistent among Linux builds. I do know it has a lot to do with whether or not your desktop environment has support specifically for JavaFX ... I know that some Gnome builds do while others don't and beyond that, I'm not all that read up on it. I use MacOS myself the majority of the time - best of both worlds, at least for me.

:-)

from fxtrayicon.

DBChoco avatar DBChoco commented on September 15, 2024

but then mix FX with AWT
@EasyG0ing1 By FX are you talking about this module ? Then should I use FX for Windows & macOS and use a customized AWT System tray for Linux ?

from fxtrayicon.

EasyG0ing1 avatar EasyG0ing1 commented on September 15, 2024

@DBChoco - No, when I say FX, That's just the lazy way of saying JavaFX

from fxtrayicon.

DBChoco avatar DBChoco commented on September 15, 2024

Oh okay, seems likes I misunderstood your previous reply. I think I'll close this now then, since it seems like there is no way you could fix it.
Thanks for all the replies and advice, I appreciate it.

from fxtrayicon.

EasyG0ing1 avatar EasyG0ing1 commented on September 15, 2024

@DBChoco - Yeah ... modifying core Java AWT libraries - or more specifically - fixing what Oracle never did right in the first place, isn't really in my skillset, unfortunately. ☺

from fxtrayicon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.