1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +00:00

Tweak high-end mark in the visual shader editor's node creation dialog

- Use Forward+/Mobile terminology as support actually depends on the
  rendering method used, not the rendering driver.
- Use a standard warning color as this is no longer indicated as
  Vulkan-specific.
- Fix color on light theme (the text was being modulated instead
  of having its color overridden).
This commit is contained in:
Hugo Locurcio
2025-02-27 01:41:07 +01:00
parent 68410acc61
commit 8a22dba956
4 changed files with 5 additions and 17 deletions

View File

@@ -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);