Skip to content

fix: apply glint color to PolyCompose GUI items - #21

Merged
Wyvest merged 1 commit into
Polyfrost:mainfrom
chivenant:fix/polycompose-glint-color
Nov 24, 2026
Merged

Wyvest merged 1 commit into
Polyfrost:mainfrom
chivenant:fix/polycompose-glint-color

Conversation

@chivenant

Copy link
Copy Markdown
Contributor

VanillaHUD 3.5.16 draws hotbar items through PolyCompose's item atlas. Its glint shader takes its tint from McItemGlint, which hard-codes the vanilla purple, so the configured GUI glint color is ignored on the hotbar.

This adds a @Pseudo compat mixin, alongside the Argentum and OverflowAnimations ones, that writes the GUI item stroke colors into McItemGlint's layer data when Glint Colorizer is enabled.

Not covered: speed, rotation and scale on this path, and potion-based colors, since PolyCompose uses one tint per draw.

Testing: ./gradlew build passes for 1.8.9. The same mixin, packaged as a standalone mod, fixed the hotbar color in-game with VanillaHUD 3.5.16, PolyCompose 3.0.6 and Glint Colorizer 3.0.3. The build from this branch has not been run in-game.

@Wyvest
Wyvest merged commit e37ba30 into Polyfrost:main Nov 24, 2026
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.

2 participants