How do you change the color of a button?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MmTtDeveloper

This might sound like a very silly question with a silly answer, but how do you change the color of a button in Godot? For example, how do you make the default gray button green or any other color?

Edit: Just clarifying that I’m not talking about the font color.

:bust_in_silhouette: Reply From: kidscancode

This is done using a Theme.

See here for examples of usage:
https://docs.godotengine.org/en/latest/tutorials/gui/gui_skinning.html

but what about changing the color of the icon texture?

sairam123 | 2021-06-04 07:12

Updated links, since Godot doc switched “gui” to “ui”:

Stable:
https://docs.godotengine.org/en/stable/tutorials/gui/gui_skinning.html

Latest:
Introduction to GUI skinning — Godot Engine (latest) documentation in English

Hyper Sonic | 2021-11-11 17:53

:bust_in_silhouette: Reply From: Andrew Wilkes

It’s not possible without affecting the text as well, so I recommend using an Asset Library plugin: Color Picker Text Button - Godot Asset Library