diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2024-03-20 09:40:45 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2024-03-20 09:40:45 +0300 |
commit | e6dafb102015384667b5f3adbe90b8318c0462cf (patch) | |
tree | 1be3d0cf17ac0c26d05299d32c87de164cd1b66a /editor/editor_help.cpp | |
parent | fe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff) | |
download | redot-engine-e6dafb102015384667b5f3adbe90b8318c0462cf.tar.gz |
Editor: Fix text color in `EditorHelpHighlighter`
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r-- | editor/editor_help.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 022cf82426..27a97c5ced 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -3542,8 +3542,11 @@ void EditorHelpHighlighter::reset_cache() { } EditorHelpHighlighter::EditorHelpHighlighter() { + const Color text_color = EDITOR_GET("text_editor/theme/highlighting/text_color"); + #ifdef MODULE_GDSCRIPT_ENABLED TextEdit *gdscript_text_edit = memnew(TextEdit); + gdscript_text_edit->add_theme_color_override("font_color", text_color); Ref<GDScript> gdscript; gdscript.instantiate(); @@ -3560,6 +3563,7 @@ EditorHelpHighlighter::EditorHelpHighlighter() { #ifdef MODULE_MONO_ENABLED TextEdit *csharp_text_edit = memnew(TextEdit); + csharp_text_edit->add_theme_color_override("font_color", text_color); Ref<CSharpScript> csharp; csharp.instantiate(); |