jpegzilla / sai2-recolor

recolors paint tool sai 2 based on a user-provided config file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sai2 recolor tool

recolors sai2.exe based on a text file containing the desired colors.

text file should look like this (work in progress):

MainPanelColor=EDA572
CanvasBackgroundColor=1e1d26
ActiveCanvasBg=1e1d26

# scrollbars
ScrollbarBackground=c7955c
ScrollbarThumb=ffff00

# buttons
InactiveButton=21181b

# tools panel
ToolsBackground=212121
ToolsPanelBackground=313131

...

I've included a default configuration file config.txt which will provide a simple dark mode. however, you can edit the file to contain literally whatever color (6-character hex code, no alpha channel afaik) you want for each category. then, follow the steps below from the original creator.

disclaimer: I don't know a damn thing about c#.

todo:

  • fix color edge cases (#ffffff and #000000)
  • add (signed) standalone to releases tab
  • prevent aliasing
  • fix enter key not immediately closing console window
  • allow file paths with spaces
  • create a gui to modify the config
  • allow choosing between themes
  • port to rust probably
  • read colors from offset database

from original description:

drag the sai2.exe file into the executable to change the ui colors. be sure to run it from somewhere with the appropriate permissions. if you want to make your own custom colors, just edit the hex list in the source code.

also make sure you back up your sai folder just to be safe lol. I haven't noticed any issues using a modified version for a couple months now, but still.

fork: abused pixel hex value inspection to find even more areas to be changed into a proper darkmode, not just pale gray

text blacks and button whites are #000000 and #ffffff respectively, which cannot be changed in the binary without completely breaking the program. address filtering could be applied to filter which #0s and #fs are changed, but the locations themselves are discovered manually through brute force. that takes time; I do not have that much of it.

About

recolors paint tool sai 2 based on a user-provided config file