Skip to content

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

@MykytaPimonovTD

Description

@MykytaPimonovTD

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions