CaffeineMC / sodium-fabric

A Fabric mod designed to improve frame rates and reduce micro-stutter
Other
4.58k stars 775 forks source link

Allow retexturing of UI elements in Sodium's video settings menu #2453

Closed muzikbike closed 2 months ago

muzikbike commented 2 months ago

Request Description

The graphics displayed in Sodium's video settings menu for things like buttons, tabs, sliders, section backgrounds and on/off toggles appear to be completely hardcoded, and not tied to any texture files. As someone developing a resource pack, this means that I can't add my own textures to make Sodium's menu fit in well with my own designs. It'd be preferable if these were controlled by texture files instead of being generated by code, such that resource packs can change them, especially given that 1.20.5 makes many previously-hardcoded vanilla graphics (scroller background, menu backgrounds, etc.) customizable via resource packs. 2024-05-02_18 05 53

Felix14-v2 commented 2 months ago

this means that I can't add my own textures to make Sodium's menu fit in well with my own designs

Actually you can do that using shaders in your resourcepack, and there are some packs that already do this. For example: https://modrinth.com/resourcepack/modrinth-gui/gallery

muzikbike commented 2 months ago

Perhaps, but a way to do this intuitively with texture files rather than jumping through shader code hoops would be much more resource pack designer friendly.

jellysquid3 commented 2 months ago

The user interface does not use texturing, rather all the graphics are composed with vectors and a predefined color scheme. We could, at most, provide a way to alter the color scheme via a special text file in the resource pack.

But really, I don't want people styling the video settings screen with resource packs. We are not allowed to brand the game in any other way than the Video Settings screen, and allowing modpacks/servers/etc to easily manipulate it is asking for trouble.