You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Update icons when theme changed
This commit is contained in:
@@ -44,9 +44,11 @@ void EditorAbout::_notification(int p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
|
||||
Ref<Font> font = EditorNode::get_singleton()->get_gui_base()->get_font("source", "EditorFonts");
|
||||
Control *base = EditorNode::get_singleton()->get_gui_base();
|
||||
Ref<Font> font = base->get_font("source", "EditorFonts");
|
||||
_tpl_text->add_font_override("normal_font", font);
|
||||
_license_text->add_font_override("normal_font", font);
|
||||
_logo->set_texture(base->get_icon("Logo", "EditorIcons"));
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user