瀏覽代碼

Merge pull request #55013 from Calinou/shader-editor-tweak-builtin-color-3.x

Tweak the built-ins color highlighting in the shader editor (take 2)
Rémi Verschelde 3 年之前
父節點
當前提交
97f4d25841
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      editor/plugins/shader_editor_plugin.cpp

+ 3 - 1
editor/plugins/shader_editor_plugin.cpp

@@ -172,8 +172,10 @@ void ShaderTextEditor::_load_theme_settings() {
 		}
 	}
 
+	const Color user_type_color = EDITOR_GET("text_editor/highlighting/user_type_color");
+
 	for (List<String>::Element *E = built_ins.front(); E; E = E->next()) {
-		get_text_edit()->add_keyword_color(E->get(), member_variable_color);
+		get_text_edit()->add_keyword_color(E->get(), user_type_color);
 	}
 
 	// Colorize comments.