+6 votes

I am trying to create a GUI theme so I can have most of GUI skin inside a common file, however I cannot find any way of doing it from the editor.
I read the documentation, but from http://docs.godotengine.org/en/latest/tutorials/2d/gui_skinning.html#creating-a-theme I'm getting lost, the screenshot is wrong and outdated.

When I create a theme, the only property I can edit is the default font.
Clicking on preview controls has no effect. The .tres file also only contains the font setting... how are we supposed to create a custom theme in the editor?

in Engine by (27,964 points)

1 Answer

+12 votes
Best answer

The interface for the theme editor is not really good right now, even though it is fully possible to create themes using the editor.

When you select your theme in the inspector, you should see a preview window. At the top of that preview window, you can see a Theme button that, when clicked, makes a dropdown menu appear. In it, choose Add Class Items then choose a type (like Button). Then choose Add, and you will be able to edit button properties in the inspector.

by (11,347 points)
selected by

Awww I overlooked this button, thinking it was a theme example label :O
Thank you!

This doesn't look like a button, it looks like a label, until you hover it. Bad design. Anyways, thanks.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.