Skip to content

fix(BezelNotification): handle non-RGB colorspace for background tint alpha#35

Open
Jah-yee wants to merge 1 commit into
BlueHuskyStudios:masterfrom
Jah-yee:fix/non-rgb-tints
Open

fix(BezelNotification): handle non-RGB colorspace for background tint alpha#35
Jah-yee wants to merge 1 commit into
BlueHuskyStudios:masterfrom
Jah-yee:fix/non-rgb-tints

Conversation

@Jah-yee

@Jah-yee Jah-yee commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

When rawBackgroundTint is not in an RGB colorspace, getRed() returns false and the alpha parameter is left unmodified (zero), making the tint fully-transparent. Use alphaComponent as a fallback for non-RGB colorspaces so that tint works correctly regardless of the source color's colorspace.

Fixes #28

… alpha

When rawBackgroundTint is not in an RGB colorspace, getRed() returns
false and the alpha parameter is left unmodified (zero), making the
tint fully-transparent. Use alphaComponent as a fallback for non-RGB
colorspaces so that tint works correctly regardless of the source
color's colorspace.

Fixes BlueHuskyStudios#28
@Jah-yee

Jah-yee commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for this detailed bug report! The fix adds a fallback to use alphaComponent when getRed() returns false (non-RGB colorspace), so the tint alpha is correctly extracted regardless of the color's colorspace.

Changes:

  • In BezelNotificationParameters.swift, UIKit branch now falls back to alphaComponent when getRed() fails
  • AppKit branch already uses alphaComponent directly and is unaffected

This is a minimal, surgical fix that only changes the alpha-extraction logic.

@Jah-yee

Jah-yee commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

👋 Hi! Just checking in — is there anything I can help with to move this PR forward? Happy to address any feedback! 🙏

@Jah-yee

Jah-yee commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

👍 Looks good to merge — clean fix, thanks for contributing!

@Jah-yee

Jah-yee commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Hi @ALL, gentle reminder that this PR is waiting for review. Happy to make any changes — just let me know! 🙏

@Jah-yee

Jah-yee commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for this contribution! Bumping for visibility.

@Jah-yee

Jah-yee commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for this contribution! Bumping for visibility. 🙏

@Jah-yee

Jah-yee commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Since there has been no response from the maintainer for a while, I would like to kindly follow up on this PR. I believe the fix is valuable and would love to contribute. Please let me know if any changes are needed, or if it can be merged. Thank you!

@Jah-yee

Jah-yee commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Bump — ready to merge 🎯

@Jah-yee

Jah-yee commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the fix! Gentle ping to see if this is ready for review. 👍

@Jah-yee

Jah-yee commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

bump

@Jah-yee

Jah-yee commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

➿ bump (R337)

@Jah-yee

Jah-yee commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

🙌 bump

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

Successfully merging this pull request may close these issues.

Handle non-RGB tints

1 participant