Преглед на файлове

Add icon for local variable completion options

HolonProduction преди 1 година
родител
ревизия
5c9d80592a
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 1
      editor/code_editor.cpp
  2. 1 0
      editor/icons/LocalVariable.svg

+ 1 - 1
editor/code_editor.cpp

@@ -1067,7 +1067,7 @@ Ref<Texture2D> CodeTextEditor::_get_completion_icon(const ScriptLanguage::CodeCo
 			tex = get_editor_theme_icon(SNAME("NodePath"));
 			break;
 		case ScriptLanguage::CODE_COMPLETION_KIND_VARIABLE:
-			tex = get_editor_theme_icon(SNAME("Variant"));
+			tex = get_editor_theme_icon(SNAME("LocalVariable"));
 			break;
 		case ScriptLanguage::CODE_COMPLETION_KIND_CONSTANT:
 			tex = get_editor_theme_icon(SNAME("MemberConstant"));

+ 1 - 0
editor/icons/LocalVariable.svg

@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><g fill="#e0e0e0"><path d="M9 5c-4 0-4 6 0 6h2v-6zm0 4c-1.3333 0-1.3333-2 0-2zM14 5c-1.6569 0-3 1.3431-3 3v3h2v-3c0-.55228.44772-1 1-1h1v-2z"/><path d="m1 5v6h2c1.6569 0 3-1.3431 3-3v-3h-2v3c0 0.55228-0.44772 1-1 1v-4z"/></g></svg>