Skip to content

fix(ContainerPreview): Fix invisible text on preview#275

Open
IceTank wants to merge 1 commit intolambda-client:1.21.11from
IceTank:fix/invisible-container-preview-container-text
Open

fix(ContainerPreview): Fix invisible text on preview#275
IceTank wants to merge 1 commit intolambda-client:1.21.11from
IceTank:fix/invisible-container-preview-container-text

Conversation

@IceTank
Copy link
Contributor

@IceTank IceTank commented Mar 21, 2026

This pr changes the luminance method. It replaces the magic number values with the Minecraft internal color values. The used magic values had zero alpha components and thus appeared invisible.
This PR also changes the luminance check on the text color to make the text in the preview windows easier to read.

Luminance comparison
Before:
image
image

After:
image
image

Fix luminance check making most shulker name text hard to read
@IceTank
Copy link
Contributor Author

IceTank commented Mar 22, 2026

fixes #254

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

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant