Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
A singleton that provides access to static information about Theme resources used by the engine and by your project.
This singleton provides access to static information about Theme resources used by the engine and by your projects. You can fetch the default engine theme, as well as your project configured theme.
ThemeDB also contains fallback values for theme properties.
fallback_changed ( )
Emitted when one of the fallback values had been changed. Use it to refresh the look of controls that may rely on the fallback theme items.
float fallback_base_scale =
See also Theme.default_base_scale.
See also Theme.default_font.
int fallback_font_size =
See also Theme.default_font_size.
Theme get_default_theme ( )
Theme get_project_theme ( )
Returns a reference to the custom project Theme. This theme resources allows to override the default engine theme for every control node in the project.
To set the project theme, see ProjectSettings.gui/theme/custom.