diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index d5e12424065..0337f64a59d 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -543,6 +543,8 @@ void EditorNode::_update_theme(bool p_skip_creation) { tb->set_icon(theme->get_icon(p_editor->get_name(), EditorStringName(EditorIcons))); } } + + _update_renderer_color(); } editor_dock_manager->update_tab_styles(); @@ -6177,15 +6179,12 @@ Vector> EditorNode::find_resource_conversion void EditorNode::_update_renderer_color() { String rendering_method = renderer->get_selected_metadata(); - // TODO: Use theme colors instead of hardcoded values. if (rendering_method == "forward_plus") { - renderer->add_theme_color_override("font_color", Color::hex(0x5d8c3fff)); - } - if (rendering_method == "mobile") { - renderer->add_theme_color_override("font_color", Color::hex(0xa5557dff)); - } - if (rendering_method == "gl_compatibility") { - renderer->add_theme_color_override("font_color", Color::hex(0x5586a4ff)); + renderer->add_theme_color_override("font_color", theme->get_color(SNAME("forward_plus_color"), EditorStringName(Editor))); + } else if (rendering_method == "mobile") { + renderer->add_theme_color_override("font_color", theme->get_color(SNAME("mobile_color"), EditorStringName(Editor))); + } else if (rendering_method == "gl_compatibility") { + renderer->add_theme_color_override("font_color", theme->get_color(SNAME("gl_compatibility_color"), EditorStringName(Editor))); } }