Skip to content

fix: handle transparency in mask-based icons for systray provider#198

Merged
lars-berger merged 1 commit intoglzr-io:mainfrom
Video-Nomad:fix/systray-icon-mask-fix
May 21, 2025
Merged

fix: handle transparency in mask-based icons for systray provider#198
lars-berger merged 1 commit intoglzr-io:mainfrom
Video-Nomad:fix/systray-icon-mask-fix

Conversation

@Video-Nomad
Copy link
Contributor

@Video-Nomad Video-Nomad commented Mar 5, 2025

Noticed there's an issue with transparency handling of old-school mask-based icons if there is a full black color involved.
In the original code if all the color channels are 0 (full black) it was treated as transparent which is incorrect.
I feel like removing this check will be a better option since we already establishing that we are dealing with mask-based icons beforehand with another check and there's only two possible values for those pixels - fully transparent (255) or opaque (everything else).

Before:
4Dmo1qGeoR

After:
kUN3GF2uty

Windows systray:
image

@github-project-automation github-project-automation bot moved this to 📬 Needs triage in zebar Mar 5, 2025
@lars-berger
Copy link
Member

Thanks for fixing this! Both @HolbyFPV and I were trying to figure out this mask stuff but when one icon looked correct, it'd then break a different one.

Apologies for getting around to reviewing this so late. I've been working on and off on a major v3 version bump which has a bunch of changes, but it's finally good to go. I'll get this PR included in a beta release of v3 later today.

@lars-berger lars-berger changed the title fix: systray fixed the mask-based icons transparency handling fix: handle transparency in mask-based icons for systray provider May 21, 2025
@lars-berger lars-berger merged commit 1cfe00b into glzr-io:main May 21, 2025
6 of 7 checks passed
@github-project-automation github-project-automation bot moved this from 📬 Needs triage to ✅ Done in zebar May 21, 2025
@github-actions
Copy link

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants