Allow setting custom color palettes based on user profile color for all paletted graphics #2137
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's changed?
grf
folder. (Allow using the user profile color on more skin elements #2083)ProgressBarColor
option intheme.ini
.For each image, you may define a set of color palettes for each possible user profile color. These take the form of
.bin
files in the newpalettes
folder. They work like boxart and custom banners;box.bin
will apply tobox.bmp
. The format is very simple: each palette is 32 bytes long (16 colors with 2 bytes each). These use the same color codes as intheme.ini
. The palettes are stored one after another, in order of the profile colors (Grey-Blue, Brown, Red, Pink, Orange, Yellow, Lime, Green, Dark Green, Turquoise, Light Blue, Blue, Dark Blue, Violet, Purple, Magenta). This means each palette file is 512 bytes. It should be straightforward enough to create these with any hex editor or even online tools such as hexed.it, although it's certainly very tedious.There is one extra palette file that doesn't apply to an image.
username.bin
will apply to the username when UsernameUserPalette is enabled. This one is also a special case in that each palette is only 4 colors, so the file should only be 128 bytes.I've made an example skin based on the DSi light theme that simply tints the box textures in the user's color.
![image](https://user-images.githubusercontent.com/16037311/210925453-bacb925b-40b0-4fc6-84da-b2a2b9005339.png)
Even just recoloring this one texture and creating the palette file proved to be a lot of trouble so ideally there'd be a tool to help with creating them, but I haven't made anything like that yet.
The files in the
palettes
folder won't apply to a particular image unless itsUserPalette
option is enabled. Otherwise, they fallback to the built in palette. A few specific textures have a different fallback palette then the rest, they are noted in the table below. Here is the updated list ofUserPalette
options:Where have you tested it?
melonDS 0.9.5
DSi with Unlaunch
Pull Request status