EditorThemeManager ​
Inherits: RefCounted
Centralized theme and icon management for the Event System Provides consistent theming across all UI components and handles editor integration
Variables ​
float | editor_scale | 1.0 |
EditorSettings | editor_settings | |
Dictionary | icon_cache | {} |
Dictionary | icon_paths | { ... } |
Dictionary | editor_icon_fallbacks | { ... } |
Methods ​
void | initialize() static |
Texture2D | get_icon( icon_name: String ) static |
bool | add_custom_icon( icon_name: String, icon_path: String ) static |
Color | get_color( color_name: String ) static |
void | apply_button_theme( button: Button ) static |
void | apply_panel_theme( panel: Panel, color_name: String = "dark_color" ) static |
void | apply_panel_container_theme( panel: PanelContainer, color_name: String = "dark_color" ) static |
void | apply_line_edit_theme( line_edit: LineEdit ) static |
void | apply_label_theme( label: Label ) static |
void | apply_rich_text_label_theme( rich_text_label: RichTextLabel ) static |
void | apply_text_edit_theme( text_edit: TextEdit ) static |
void | apply_menu_button_theme( menu_button: MenuButton ) static |
void | apply_tree_theme( tree: Tree ) static |
void | apply_item_list_theme( item_list: ItemList ) static |
void | apply_spin_box_theme( spin_box: SpinBox ) static |
void | apply_option_button_theme( option_button: OptionButton ) static |
StyleBox | get_style( style_name: String, component_type: String = "" ) static |
float | get_editor_scale() static |
Vector2 | get_themed_size( base_size: Vector2 ) static |
int | get_themed_margin( base_margin: int ) static |
ConfirmationDialog | create_themed_confirmation_dialog( title: String, text: String ) static |
AcceptDialog | create_themed_accept_dialog( title: String, text: String ) static |
void | apply_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)