Skip to content

Added color override helper#43

Merged
Alexdoru merged 7 commits intomasterfrom
Ranzu/ColorLocalization
Mar 10, 2026
Merged

Added color override helper#43
Alexdoru merged 7 commits intomasterfrom
Ranzu/ColorLocalization

Conversation

@Ranzuu
Copy link

@Ranzuu Ranzuu commented Mar 9, 2026

Added the color helper which checks the lang key for corresponding keys, if not present, fallsback to default values. That gives the ability to edit the color with the resource pack.

Current optional keys:

codechickencore.color.background=FF000000
codechickencore.color.overlayTop=FFA0A0A0
codechickencore.color.overlayBottom=FFA0A0A0
codechickencore.color.overlayLeft=FFA0A0A0
codechickencore.color.overlayRight=FFA0A0A0
codechickencore.color.scrollbarCorners=FF8B8B8B
codechickencore.color.scrollbarTopLeft=FFF0F0F0
codechickencore.color.scrollbarBottomRight=FF555555
codechickencore.color.scrollbarFill=FFC6C6C6
codechickencore.color.scrollbarGuide=FF808080
codechickencore.color.buttonTextDisabled=FFA0A0A0
codechickencore.color.buttonTextHover=FFFFFFA0
codechickencore.color.buttonText=FFE0E0E0
codechickencore.color.textFieldBorder=FFA0A0A0
codechickencore.color.textFieldBackground=FF000000
codechickencore.color.textFieldText=00E0E0E0
codechickencore.color.textFieldTextDisabled=00707070
codechickencore.color.tooltipBgStart=F0100010
codechickencore.color.tooltipBgEnd=F0100010
codechickencore.color.tooltipBorderStart=505000FF
codechickencore.color.tooltipBorderEnd=5028007F
codechickencore.color.tooltipText=FFFFFFFF
codechickencore.color.modDescriptionText=00DDDDDD
codechickencore.color.itemQuantityText=00FFFFFF

Also removed the comments from GuiScrollPane.java, because the helper already indicated the target

@Ranzuu Ranzuu added the enhancement New feature or request label Mar 9, 2026
@Ranzuu Ranzuu requested a review from a team March 9, 2026 13:17
@Ranzuu Ranzuu self-assigned this Mar 9, 2026
@Ranzuu
Copy link
Author

Ranzuu commented Mar 9, 2026

Example with override
image

@slprime
Copy link
Member

slprime commented Mar 9, 2026

Maybe we should turn it into a texture, since there are too many colors to account for without reading the code. That way, people will be able to customize the texture to their liking.

@Ranzuu
Copy link
Author

Ranzuu commented Mar 9, 2026

Maybe we should turn it into a texture, since there are too many colors to account for without reading the code. That way, people will be able to customize the texture to their liking.

All colors can now be edited with this helper, technically we could make it a texture, but that will require some atlas class. I think this is enough, especially when we can edit all of the colors of it.

Copy link
Member

@Alexdoru Alexdoru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks so wrong could you like no do that

@Alexdoru
Copy link
Member

Alexdoru commented Mar 9, 2026

have you done this to any other repo?

@Ranzuu Ranzuu marked this pull request as draft March 9, 2026 21:46
@Ranzuu Ranzuu marked this pull request as ready for review March 9, 2026 22:39
@Alexdoru Alexdoru merged commit 6e90633 into master Mar 10, 2026
1 check passed
@Alexdoru Alexdoru deleted the Ranzu/ColorLocalization branch March 10, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants