Skip to content

EditorThemeManager ​

Inherits: RefCounted

Centralized theme and icon management for the Event System Provides consistent theming across all UI components and handles editor integration

Variables ​

floateditor_scale1.0
EditorSettingseditor_settings
Dictionaryicon_cache{}
Dictionaryicon_paths{ ... }
Dictionaryeditor_icon_fallbacks{ ... }

Methods ​

voidinitialize() static
Texture2Dget_icon( icon_name: String ) static
booladd_custom_icon( icon_name: String, icon_path: String ) static
Colorget_color( color_name: String ) static
voidapply_button_theme( button: Button ) static
voidapply_panel_theme( panel: Panel, color_name: String = "dark_color" ) static
voidapply_panel_container_theme( panel: PanelContainer, color_name: String = "dark_color" ) static
voidapply_line_edit_theme( line_edit: LineEdit ) static
voidapply_label_theme( label: Label ) static
voidapply_rich_text_label_theme( rich_text_label: RichTextLabel ) static
voidapply_text_edit_theme( text_edit: TextEdit ) static
voidapply_menu_button_theme( menu_button: MenuButton ) static
voidapply_tree_theme( tree: Tree ) static
voidapply_item_list_theme( item_list: ItemList ) static
voidapply_spin_box_theme( spin_box: SpinBox ) static
voidapply_option_button_theme( option_button: OptionButton ) static
StyleBoxget_style( style_name: String, component_type: String = "" ) static
floatget_editor_scale() static
Vector2get_themed_size( base_size: Vector2 ) static
intget_themed_margin( base_margin: int ) static
ConfirmationDialogcreate_themed_confirmation_dialog( title: String, text: String ) static
AcceptDialogcreate_themed_accept_dialog( title: String, text: String ) static
voidapply_event_editor_preset( main_view: Control ) static

Variable descriptions ​

float editor_scale = 1.0 ​

No description yet.

EditorSettings editor_settings ​

No description yet.

Dictionary icon_cache = ​

No description yet.

Dictionary icon_paths ​

No description yet.

Dictionary editor_icon_fallbacks ​

No description yet.

Method descriptions ​

void initialize() ​

Initialize the theme manager - call this once at startup

Texture2D get_icon( icon_name: String ) ​

Get an icon by name with automatic fallback

bool add_custom_icon( icon_name: String, icon_path: String ) ​

Add custom icon path

Color get_color( color_name: String ) ​

Get theme color by semantic name

void apply_button_theme( button: Button ) ​

Apply common button styles to a button

void apply_panel_theme( panel: Panel, color_name: String = "dark_color" ) ​

Apply panel theme

void apply_panel_container_theme( panel: PanelContainer, color_name: String = "dark_color" ) ​

Apply panel theme with color variant support

void apply_line_edit_theme( line_edit: LineEdit ) ​

Apply line edit theme

void apply_label_theme( label: Label ) ​

Apply label theme

void apply_rich_text_label_theme( rich_text_label: RichTextLabel ) ​

Apply rich text label theme

void apply_text_edit_theme( text_edit: TextEdit ) ​

Apply text edit theme

void apply_menu_button_theme( menu_button: MenuButton ) ​

Apply menu button theme

void apply_tree_theme( tree: Tree ) ​

Apply tree theme

void apply_item_list_theme( item_list: ItemList ) ​

Apply item list theme

void apply_spin_box_theme( spin_box: SpinBox ) ​

Apply spin box theme (simple version - treats as LineEdit)

void apply_option_button_theme( option_button: OptionButton ) ​

Apply option button theme

StyleBox get_style( style_name: String, component_type: String = "" ) ​

Get style box by semantic name (for FunctionBuilder compatibility)

float get_editor_scale() ​

Get current editor scale

Vector2 get_themed_size( base_size: Vector2 ) ​

Get themed size (multiplied by scale)

int get_themed_margin( base_margin: int ) ​

Get themed margin (multiplied by scale)

ConfirmationDialog create_themed_confirmation_dialog( title: String, text: String ) ​

Create simple themed confirmation dialog (replaces the complex one)

AcceptDialog create_themed_accept_dialog( title: String, text: String ) ​

Create simple themed accept dialog

void apply_event_editor_preset( main_view: Control ) ​

Apply event editor theme preset (simplified)