Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
Table of contents
ThemeDB #
is_instantiable, core, not_builtin_classes, singleton
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.
Members #
var fallback_base_scale: float = 1.0#
The fallback base scale factor of every Control node and Theme resource. Used when no other value is available to the control.
See also Theme.default_base_scale.
var fallback_font: Font#
The fallback font of every Control node and Theme resource. Used when no other value is available to the control.
See also Theme.default_font.
var fallback_font_size: int = 16#
The fallback font size of every Control node and Theme resource. Used when no other value is available to the control.
See also Theme.default_font_size.
var fallback_icon: Texture2D#
The fallback icon of every Control node and Theme resource. Used when no other value is available to the control.
var fallback_stylebox: StyleBox#
The fallback stylebox of every Control node and Theme resource. Used when no other value is available to the control.
Methods #
func get_default_theme() -> Theme#
Returns a reference to the default engine Theme. This theme resource is responsible for the out-of-the-box look of Control nodes and cannot be overridden.
func get_project_theme() -> 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.
Annotations #
Constants #
Constructors #
Enums #
Operators #
Signals #
signal 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.