Skip to content
New issue

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

Unable to create an adaptive icon with a color badge on the macOS system tray #71

Open
MykytaPimonovTD opened this issue Dec 9, 2024 · 0 comments
Assignees

Comments

@MykytaPimonovTD
Copy link
Contributor

MykytaPimonovTD commented Dec 9, 2024

macOS automatically adjusts tray icon colors to match changes in the wallpaper.

Our task is to create an application tray icon that adapts its color to changes in the wallpaper while retaining a colored component.

For icons to change color dynamically, they must be in template format. This can be enabled using the apple.awt.enableTemplateImages flag. However, this approach restricts the icon to only black and alpha channels, preventing custom color settings.

Currently, no tool has been found in Compose Multiplatform or Java AWT to address this issue.

Since the color badge was prioritized, the application icon was designed in black and white to remain visible on any wallpaper. The icon is not marked as a template, meaning it does not change based on the wallpaper. The current appearance is as follows:

Light theme:

Screenshot 2024-12-10 at 11 32 02

Dark theme:

Screenshot 2024-12-10 at 11 32 14

A single-color application icon is needed that changes its color based on the wallpaper while also incorporating a colored badge. The desired outcome is as follows:

Light theme:

Screenshot 2024-12-10 at 11 38 26

Dark theme:

Screenshot 2024-12-10 at 11 37 34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant