Comments (12)
Are you using a transparent PNG for the image?
from fxtrayicon.
Yes I am, shouldn't I ?
from fxtrayicon.
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.
@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 - 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.
@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?
from fxtrayicon.
@EasyG0ing1 I'm actually on XFCE (arch linux), isn't it supported ?
from fxtrayicon.
@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.
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.
@DBChoco - No, when I say FX, That's just the lazy way of saying JavaFX
from fxtrayicon.
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.
@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)
- NullPointerException when null MenuItem() HOT 3
- When another thread is running, some codding stops working! HOT 5
- After adding menu items, Actions listener on menu items not working HOT 2
- Clicking two time on Tray icon show empty stage? HOT 4
- After adding checkMenuItem, chech or uncheck not working HOT 1
- How to set Taskbar icon to JFXFileChooser? HOT 1
- Icon resolution limited to 16x16 on Windows HOT 1
- Only square icons possible? HOT 8
- addMenuItem after tray is shown throws exception HOT 8
- Feature Request: Make getTrayIcon() public HOT 8
- showMessage() title of the notification window HOT 6
- Icon Size Discussion HOT 1
- Blurry Icon with FXTrayIcon, Clearer Icon with AWT HOT 1
- Tray icon is non-transparent on some Linux desktop environments HOT 4
- JFXCentral Badge HOT 1
- TrayMenu can't show unicode characters HOT 1
- Maven central version HOT 3
- Menu size issue (high dpi) HOT 3
- Adding styling to the menu-item HOT 1
- Add graalvm-native image support! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fxtrayicon.