Add invert_colors to button_style

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
_KiRiK_
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Mar 14, 2025 7:52 pm
Contact:

Add invert_colors to button_style

Post by _KiRiK_ »

123.png
123.png (71.01 KiB) Viewed 168 times
hi. I'm making an interface mod and ran into a problem.
black icons are not visible and their color needs to be inverted.
but invert_colors does not work for button_style.
Could you add this functionality?
curiosity
Filter Inserter
Filter Inserter
Posts: 607
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Add invert_colors to button_style

Post by curiosity »

If at all, it should be a property in SpritePrototype, not button style. But you can already include manually modified files and use those.
_KiRiK_
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Mar 14, 2025 7:52 pm
Contact:

Re: Add invert_colors to button_style

Post by _KiRiK_ »

curiosity wrote: Sat Mar 15, 2025 9:00 am If at all, it should be a property in SpritePrototype, not button style. But you can already include manually modified files and use those.
hmm. This is not what it should be according to the logic of things.
The button style should define this.
if a mod adds its own button to shortcuts or mod_gui_button, then it will be black and I need to catch all the icons and invert their colors. what if the icon is colored? it will invert its colors and ruin everything.
Now I understand why this won't work properly. and why the game has icons of black and white versions.
3.png
3.png (45.94 KiB) Viewed 112 times
2.png
2.png (28.42 KiB) Viewed 112 times
4.png
4.png (118.54 KiB) Viewed 112 times

for shortcut and mod_gui I will have to make a light background.
for other buttons I will invert the colors of the sprites
Post Reply

Return to “Modding interface requests”