Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x] Add type variations to Theme #57942

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

YuriSizov
Copy link
Contributor

Backport of #47544 and #50169.

This PR makes it possible to define sub-types, or type variations, for theme types. Basically, in your project theme you can define a type BlueButton and make it variation of Button. Now, every button in your project can pick to use that variation as its base theme type. This way, you can define everything about these buttons using a single Theme resource instead of manually and painstakingly overriding each theme property every time.

2022-02-11_00-20-29.mp4

Fully editable with the theme editor and also can be picked with the control picker:

godot.windows.tools.64_2022-02-11_00-25-21.mp4

@YuriSizov YuriSizov added this to the 3.5 milestone Feb 10, 2022
@YuriSizov YuriSizov requested review from a team February 10, 2022 21:34
@YuriSizov YuriSizov requested review from a team as code owners February 10, 2022 21:34
doc/classes/@GlobalScope.xml Outdated Show resolved Hide resolved
core/object.h Outdated Show resolved Hide resolved
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants