How to make icons suitable for any theme godot

Godot Version

Godot 3.x, Godot 4.x

Question

I’m making a plugin for godot, using EditorPlugin and so on, where buttons with icons will be drawn in the inspector.
in Godot, if we change the theme, the icons can be either dark or light, can you please explain how to do this for the plugin?

There’s specific colours that will be replaced in dark theme, see here:

1 Like

Thanks, but how do I know what the current color theme is?

You don’t need to for this, but you can do that with EditorSettings I think

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.