FXTrayIcon icon indicating copy to clipboard operation
FXTrayIcon copied to clipboard

Menu size issue (high dpi)

Open gurpal2000 opened this issue 1 year ago • 1 comments

On a Surface pro with res 2736x1824 Windows 11, menu looks like this. Incredibly small relative to the rest of the OS as you can see. Not a major issue and note that some non-Java apps are unable to handle such dpi.

image

gurpal2000 avatar May 20 '24 20:05 gurpal2000

@gurpal2000

You can try this one where I added an option to the Builder class, iconOverride(int width, int height) you can try that and see if the resolution improves with higher resolution icons under the high resolution desktop. I'm thinking it's not going to make any difference, but it never hurts to try.

Once you've unzipped the archive, you can install it into your local Maven depot:

mvn install:install-file \
  -Dfile=/full/path/to/FXTrayIcon-4.2.11-SNAPSHOT.jar \
  -DgroupId=com.dustinredmond.fxtrayicon \
  -DartifactId=FXTrayIcon \
  -Dversion=4.2.11-SNAPSHOT \
  -Dpackaging=jar

Then your dependency in your POM file:

<dependency>
   <groupId>com.dustinredmond.fxtrayicon</groupId>
   <artifactId>FXTrayIcon</artifactId>
   <version>4.2.11-SNAPSHOT</version>
</dependency> 

Then just instantiate with Builder class calling the iconOverride option. FXTrayIcon-4.2.11-SNAPSHOT.zip

EasyG0ing1 avatar May 30 '24 14:05 EasyG0ing1

Any luck here? AWT limits us a good bit as to what we can do here. I would like to close this issue if a resolution has been reached.

dustinkredmond avatar Aug 06 '24 22:08 dustinkredmond

@dustinkredmond please close as my use case to run on hi dpi no longer exists. The workaround is good enough though and I feel it's a good addition. Considered closed for me, thank you.

gurpal2000 avatar Aug 08 '24 08:08 gurpal2000