TeamDev-IP / JxBrowser-Gallery

A gallery of apps built with JxBrowser, each solving a real-world use-case
MIT License
0 stars 0 forks source link

Adjust tray icons for macOS #7

Open yevhenii-nadtochii opened 8 months ago

yevhenii-nadtochii commented 8 months ago

We have pause, play and stop 32x32 icons that reflect the state of the timer.

The problem is that they are a bit blurry.

For example, take a look on play icon:

image

These free icons were taken from here. I've tried them in all available dimensions, but it doesn't help.

I didn't find any official Apple docs about what menu bar icon (not app icon!) they expect. But I have found what Compose expects for such icons in their source code.

In the scope of this issue, try to adjust the icons and check whether the blurriness goes away.

The suggested icon layout from an article referenced in Compose source code is the following:

image

vladimir-ikryanov commented 8 months ago

@yevhenii-nadtochii the tray icon should be in two dimensions for scale factor 1.0 and 2.0. In Molybden we support high resolution images for tray. So, if you want to display 16x16 icon on Retina, you need to use 32x32 icon.

If you want a black/white icon that changes its color depending on the dark/light mode in macOS, then you should use "Template image".

yevhenii-nadtochii commented 8 months ago

@vladimir-ikryanov I've tried these dimensions, they are still a bit blurry. Although, 32x32 (which is on the screenshot) is the least blurry out of the rest dimensions.

alexander-yevsyukov commented 7 months ago

@yevhenii-nadtochii, please sync. labels in the JxBrowser-Gallery project with those in JxBrowser. Then, please apply the compose label to issues related to v8 features.

alexander-yevsyukov commented 7 months ago

@armiol, FYI. Probably, the label comment is for you.