diff --git a/doc/classes/VisualShaderNodeCustom.xml b/doc/classes/VisualShaderNodeCustom.xml index 4bcb74e0b28..a03372fba67 100644 --- a/doc/classes/VisualShaderNodeCustom.xml +++ b/doc/classes/VisualShaderNodeCustom.xml @@ -184,8 +184,8 @@ - Override this method to enable high-end mark in the Visual Shader Editor's members dialog. - Defining this method is [b]optional[/b]. If not overridden, it's [code]false[/code]. + Override this method to enable the high-end mark in the Visual Shader Editor's members dialog. This should return [code]true[/code] for nodes that only work when using the Forward+ and Mobile renderers. + Defining this method is [b]optional[/b]. If not overridden, it's [code]false[/code], which indicates this node works with all renderers (including Compatibility). diff --git a/editor/shader/visual_shader_editor_plugin.cpp b/editor/shader/visual_shader_editor_plugin.cpp index 90ab7ae217a..0f89580a758 100644 --- a/editor/shader/visual_shader_editor_plugin.cpp +++ b/editor/shader/visual_shader_editor_plugin.cpp @@ -5283,7 +5283,7 @@ void VisualShaderEditor::_notification(int p_what) { case NOTIFICATION_THEME_CHANGED: { site_search->set_button_icon(get_editor_theme_icon(SNAME("ExternalLink"))); - highend_label->set_modulate(get_theme_color(SNAME("highend_color"), EditorStringName(Editor))); + highend_label->add_theme_color_override(SceneStringName(font_color), get_theme_color(SNAME("warning_color"), EditorStringName(Editor))); param_filter->set_right_icon(Control::get_editor_theme_icon(SNAME("Search"))); node_filter->set_right_icon(Control::get_editor_theme_icon(SNAME("Search"))); @@ -6927,9 +6927,9 @@ VisualShaderEditor::VisualShaderEditor() { highend_label->set_focus_mode(Control::FOCUS_ACCESSIBILITY); desc_hbox->add_child(highend_label); highend_label->set_visible(false); - highend_label->set_text("Vulkan"); + highend_label->set_text(TTRC("Forward+/Mobile")); highend_label->set_mouse_filter(Control::MOUSE_FILTER_STOP); - highend_label->set_tooltip_text(TTR("High-end node")); + highend_label->set_tooltip_text(TTR("Only supported in the Forward+ and Mobile rendering methods, not Compatibility.")); node_desc = memnew(RichTextLabel); members_vb->add_child(node_desc); diff --git a/editor/themes/theme_classic.cpp b/editor/themes/theme_classic.cpp index 7b950f4da7b..7631163fa25 100644 --- a/editor/themes/theme_classic.cpp +++ b/editor/themes/theme_classic.cpp @@ -180,12 +180,6 @@ void ThemeClassic::populate_shared_styles(const Ref &p_theme, Edito p_theme->set_color("forward_plus_color", EditorStringName(Editor), Color::hex(0x5d8c3fff)); p_theme->set_color("mobile_color", EditorStringName(Editor), Color::hex(0xa5557dff)); p_theme->set_color("gl_compatibility_color", EditorStringName(Editor), Color::hex(0x5586a4ff)); - - if (p_config.dark_theme) { - p_theme->set_color("highend_color", EditorStringName(Editor), Color(1.0, 0.0, 0.0)); - } else { - p_theme->set_color("highend_color", EditorStringName(Editor), Color::hex(0xad1128ff)); - } } // Constants. diff --git a/editor/themes/theme_modern.cpp b/editor/themes/theme_modern.cpp index f6f76c0a71c..469ea45d289 100644 --- a/editor/themes/theme_modern.cpp +++ b/editor/themes/theme_modern.cpp @@ -203,12 +203,6 @@ void ThemeModern::populate_shared_styles(const Ref &p_theme, Editor p_theme->set_color("forward_plus_color", EditorStringName(Editor), Color::hex(0x5d8c3fff)); p_theme->set_color("mobile_color", EditorStringName(Editor), Color::hex(0xa5557dff)); p_theme->set_color("gl_compatibility_color", EditorStringName(Editor), Color::hex(0x5586a4ff)); - - if (p_config.dark_theme) { - p_theme->set_color("highend_color", EditorStringName(Editor), Color(1.0, 0.0, 0.0)); - } else { - p_theme->set_color("highend_color", EditorStringName(Editor), Color::hex(0xad1128ff)); - } } // Constants.