diff options
| author | toger5 | 2017-08-21 23:19:27 +0200 |
|---|---|---|
| committer | toger5 | 2017-08-21 23:19:27 +0200 |
| commit | ce4eb307789eb86261afecc1400de5e5b0832400 (patch) | |
| tree | 44eb59ce4b2a6036e5201215f79ea60f2df1862f /editor/plugins/script_text_editor.cpp | |
| parent | 01e447f3df570ab6a43d43e4d354b0f4bc4370fa (diff) | |
| download | godot-ce4eb307789eb86261afecc1400de5e5b0832400.tar.gz godot-ce4eb307789eb86261afecc1400de5e5b0832400.tar.zst godot-ce4eb307789eb86261afecc1400de5e5b0832400.zip | |
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
| -rw-r--r-- | editor/plugins/script_text_editor.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 1aa9f0448..77b3ed21b 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -75,9 +75,14 @@ void ScriptTextEditor::_load_theme_settings() { text_edit->clear_colors(); - /* keyword color */ + /* color from color_theme or from editor color */ + + Color background_color = EDITOR_DEF("text_editor/highlighting/background_color", Color(0, 0, 0, 0)); + if (EDITOR_DEF("text_editor/theme/adapted_code_editor_background_color", false)) + background_color = get_color("dark_color_1", "Editor"); - text_edit->add_color_override("background_color", EDITOR_DEF("text_editor/highlighting/background_color", Color(0, 0, 0, 0))); + /* keyword color */ + text_edit->add_color_override("background_color", background_color); text_edit->add_color_override("completion_background_color", EDITOR_DEF("text_editor/highlighting/completion_background_color", Color(0, 0, 0, 0))); text_edit->add_color_override("completion_selected_color", EDITOR_DEF("text_editor/highlighting/completion_selected_color", Color::html("434244"))); text_edit->add_color_override("completion_existing_color", EDITOR_DEF("text_editor/highlighting/completion_existing_color", Color::html("21dfdfdf"))); |
