Merge pull request #89704 from dalexeev/editor-help-fix-text-color

Editor: Fix text color in `EditorHelpHighlighter`
This commit is contained in:
Rémi Verschelde 2024-04-10 14:21:51 +02:00
commit 22299f83f1
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -3562,8 +3562,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();
@ -3580,6 +3583,7 @@ EditorHelpHighlighter::EditorHelpHighlighter() {
#ifdef MODULE_MONO_ENABLED
TextEdit *csharp_text_edit = memnew(TextEdit);
csharp_text_edit->add_theme_color_override("font_color", text_color);
// See GH-89610.
//Ref<CSharpScript> csharp;