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

Colorized macOS icon doesn't render certain colors correctly #3076

Open
qwerasd205 opened this issue Dec 23, 2024 · 3 comments
Open

Colorized macOS icon doesn't render certain colors correctly #3076

qwerasd205 opened this issue Dec 23, 2024 · 3 comments
Labels
gui GUI or app issue regardless of platform (i.e. Swift, GTK) os/macos

Comments

@qwerasd205
Copy link
Collaborator

When trying to set the screen color of the macOS icon to bright or desaturated colors, the resulting color is wrong. Similarly it's impossible to make the ghost dark.

I suspect the logic for tinting the elements isn't ideal - a bad choice of blend modes or something. I can investigate this at some point to try to improve it, or see about moving this to the Zig end of things and improve it in the process.

Examples:

screen ghost result
#FFFFFF #000000 Image
#FF88FF #010101 Image
#FFFF00 #105010 Image
#7799FF #4000A0 Image
@mitchellh mitchellh added os/macos gui GUI or app issue regardless of platform (i.e. Swift, GTK) labels Dec 23, 2024
@qwerasd205
Copy link
Collaborator Author

Yeah so right now, you can't make them have a different luminance than the base value, since they're blended with the "color" blend mode. It would make more sense (IMO) to adjust the base images such that their brightest points are pure white, and then use a multiply blend mode, so that the brightest points are the specified color, alternatively we could experiment with a blend mode like overlay or soft light to see if it gives better results, but the point is: use a blend mode that allows the color to affect the luminance.

@mitchellh
Copy link
Contributor

The blending used right now is the same used in the original psd for the Ghostty official icon. It may not work for all colors that's for sure. Would love to see this improved.

@nickkadutskyi
Copy link

nickkadutskyi commented Dec 27, 2024

I don't know if those are related but here is another issue #3215 (comment) where setting screen color in theme file doesn't work while work as expected if set in config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui GUI or app issue regardless of platform (i.e. Swift, GTK) os/macos
Projects
None yet
Development

No branches or pull requests

3 participants