Button textures are rendered differently compared to previous version
With the recent changes made to ui textures that now have their own unique textures for each buttons and icons, this has created an problem for resource packs creator. In fact compared to the 1.20.1 version, button are now rendered differently which creates issues.
Created Issue:
Button textures are rendered differently compared to previous version
With the recent changes made to ui textures that now have their own unique textures for each buttons and icons, this has created an problem for resource packs creator. In fact compared to the 1.20.1 version, button are now rendered differently which creates issues.
Same thing but okay
I have attached the resource pack they are using. Buttons render incorrectly as of 23w31a due to this change. This applies to any resource pack.
is duplicated by
is duplicated by
In 1.19.3 and lower, buttons with a different width than the texture rendered with the seam being in the middle of the texture.
In 23w06a, this was changed, which also caused MC-259831.
In 1.19.4 Pre-release 2, this was changed again, which fixed the issue the reporter of MC-259831 was having. After this change, 20 pixels of border on the left and right sides of the button are preserved, while the middle of the texture gets repeated.
In 23w31a, this was changed again: it is now a nine-sliced sprite, however it only has a border size of 3. This reintroduces the same problem as MC-259831.
I believe it would be more friendly to resource pack artists if the default \assets\minecraft\textures\gui\sprites\widget\button.png.mcmeta file was changed to make the effective UVs of buttons rendered by the game better resemble how it was in 1.19.3 and earlier. This could be done by changing its left and right borders to a high value such as 99, although it would look ugly for buttons longer than 200 pixels if the texture is not changed to be wider.
Fixing this issue should also resolve MC-264573, although I do not believe these are duplicate issues as that one is comparing just the center of the button UV in 23w31a to how it is in 1.19.4 to 1.20.1 rather than in 1.19.3 and lower.
Attached are screenshots using a custom resource pack made to demonstrate the button UV in the different versions, as well as the source texture files used. The button.png.mcmeta used for the 23w31a test was copied directly from the default files.
This is a change request, and MC-264573 was resolved as Working as Intended now.
Thank you for your report!
We're tracking this issue in MC-264573, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Thank you for your report!
The texture mapping of buttons has been changed a while ago in 23w31a. Buttons use nine slice tiling, which you can tweak using a mcmeta file. Please refer to that version's changelog for more information: https://www.minecraft.net/en-us/article/minecraft-snapshot-23w31a
We're tracking this issue in MC-264573, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Can you provide the resource pack itself?
I have attached the resource pack I AM using. It's not the Bedrock Preview UI resource pack but the Ore UI - 23w31a.
My mistake, thought it was the Bedrock Preview UI because they look similar. I can reproduce this issue with any resource pack though.
The changes to button format are documented in the changelog
For future reference: Since 23w31a, buttons use nine slice tiling for their texture, which can be adjusted using the texture's mcmeta file. See also https://www.minecraft.net/en-us/article/minecraft-snapshot-23w31a