diff options
| author | Rémi Verschelde | 2018-05-10 01:25:51 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-10 01:25:51 +0200 |
| commit | 919d802e6665be1c2e984b26098a8a2a707d5ec1 (patch) | |
| tree | bb360f3c2ee367f1a6eb541383034062818d195a /editor/editor_settings.cpp | |
| parent | c294993d97bdb350d8a1e84a4050430fa973daed (diff) | |
| parent | adeed584776a7b91d2de6dd5cbb43fe3e35114e1 (diff) | |
| download | godot-919d802e6665be1c2e984b26098a8a2a707d5ec1.tar.gz godot-919d802e6665be1c2e984b26098a8a2a707d5ec1.tar.zst godot-919d802e6665be1c2e984b26098a8a2a707d5ec1.zip | |
Merge pull request #18183 from Paulb23/gdscript_highlighter_inital_changes
GDScript function definition and get_node shortcut syntax highlighting
Diffstat (limited to 'editor/editor_settings.cpp')
| -rw-r--r-- | editor/editor_settings.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index c4e6d1816..b741c432c 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -596,6 +596,10 @@ void EditorSettings::_load_default_text_editor_theme() { _initial_set("text_editor/highlighting/word_highlighted_color", Color(0.8, 0.9, 0.9, 0.15)); _initial_set("text_editor/highlighting/search_result_color", Color(0.05, 0.25, 0.05, 1)); _initial_set("text_editor/highlighting/search_result_border_color", Color(0.1, 0.45, 0.1, 1)); + + // GDScript highlighter + _initial_set("text_editor/highlighting/gdscript/function_definition_color", Color::html("#01e1ff")); + _initial_set("text_editor/highlighting/gdscript/node_path_color", Color::html("#64c15a")); } bool EditorSettings::_save_text_editor_theme(String p_file) { @@ -632,6 +636,10 @@ bool EditorSettings::_save_text_editor_theme(String p_file) { cf->set_value(theme_section, "search_result_color", ((Color)get("text_editor/highlighting/search_result_color")).to_html()); cf->set_value(theme_section, "search_result_border_color", ((Color)get("text_editor/highlighting/search_result_border_color")).to_html()); + //GDScript highlighter + cf->set_value(theme_section, "gdscript/function_definition_color", ((Color)get("text_editor/highlighting/gdscript/function_definition_color")).to_html()); + cf->set_value(theme_section, "gdscript/node_path_color", ((Color)get("text_editor/highlighting/gdscript/node_path_color")).to_html()); + Error err = cf->save(p_file); if (err == OK) { |
