You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add custom background line colour to TextEdit and remove marked lines
This commit is contained in:
@@ -59,58 +59,7 @@ void TextEditor::_change_syntax_highlighter(int p_idx) {
|
||||
}
|
||||
|
||||
void TextEditor::_load_theme_settings() {
|
||||
CodeEdit *text_edit = code_editor->get_text_editor();
|
||||
text_edit->get_syntax_highlighter()->update_cache();
|
||||
|
||||
Color background_color = EDITOR_GET("text_editor/highlighting/background_color");
|
||||
Color completion_background_color = EDITOR_GET("text_editor/highlighting/completion_background_color");
|
||||
Color completion_selected_color = EDITOR_GET("text_editor/highlighting/completion_selected_color");
|
||||
Color completion_existing_color = EDITOR_GET("text_editor/highlighting/completion_existing_color");
|
||||
Color completion_scroll_color = EDITOR_GET("text_editor/highlighting/completion_scroll_color");
|
||||
Color completion_font_color = EDITOR_GET("text_editor/highlighting/completion_font_color");
|
||||
Color text_color = EDITOR_GET("text_editor/highlighting/text_color");
|
||||
Color line_number_color = EDITOR_GET("text_editor/highlighting/line_number_color");
|
||||
Color caret_color = EDITOR_GET("text_editor/highlighting/caret_color");
|
||||
Color caret_background_color = EDITOR_GET("text_editor/highlighting/caret_background_color");
|
||||
Color text_selected_color = EDITOR_GET("text_editor/highlighting/text_selected_color");
|
||||
Color selection_color = EDITOR_GET("text_editor/highlighting/selection_color");
|
||||
Color brace_mismatch_color = EDITOR_GET("text_editor/highlighting/brace_mismatch_color");
|
||||
Color current_line_color = EDITOR_GET("text_editor/highlighting/current_line_color");
|
||||
Color line_length_guideline_color = EDITOR_GET("text_editor/highlighting/line_length_guideline_color");
|
||||
Color word_highlighted_color = EDITOR_GET("text_editor/highlighting/word_highlighted_color");
|
||||
Color mark_color = EDITOR_GET("text_editor/highlighting/mark_color");
|
||||
Color bookmark_color = EDITOR_GET("text_editor/highlighting/bookmark_color");
|
||||
Color breakpoint_color = EDITOR_GET("text_editor/highlighting/breakpoint_color");
|
||||
Color executing_line_color = EDITOR_GET("text_editor/highlighting/executing_line_color");
|
||||
Color code_folding_color = EDITOR_GET("text_editor/highlighting/code_folding_color");
|
||||
Color search_result_color = EDITOR_GET("text_editor/highlighting/search_result_color");
|
||||
Color search_result_border_color = EDITOR_GET("text_editor/highlighting/search_result_border_color");
|
||||
|
||||
text_edit->add_theme_color_override("background_color", background_color);
|
||||
text_edit->add_theme_color_override("completion_background_color", completion_background_color);
|
||||
text_edit->add_theme_color_override("completion_selected_color", completion_selected_color);
|
||||
text_edit->add_theme_color_override("completion_existing_color", completion_existing_color);
|
||||
text_edit->add_theme_color_override("completion_scroll_color", completion_scroll_color);
|
||||
text_edit->add_theme_color_override("completion_font_color", completion_font_color);
|
||||
text_edit->add_theme_color_override("font_color", text_color);
|
||||
text_edit->add_theme_color_override("line_number_color", line_number_color);
|
||||
text_edit->add_theme_color_override("caret_color", caret_color);
|
||||
text_edit->add_theme_color_override("caret_background_color", caret_background_color);
|
||||
text_edit->add_theme_color_override("font_selected_color", text_selected_color);
|
||||
text_edit->add_theme_color_override("selection_color", selection_color);
|
||||
text_edit->add_theme_color_override("brace_mismatch_color", brace_mismatch_color);
|
||||
text_edit->add_theme_color_override("current_line_color", current_line_color);
|
||||
text_edit->add_theme_color_override("line_length_guideline_color", line_length_guideline_color);
|
||||
text_edit->add_theme_color_override("word_highlighted_color", word_highlighted_color);
|
||||
text_edit->add_theme_color_override("breakpoint_color", breakpoint_color);
|
||||
text_edit->add_theme_color_override("executing_line_color", executing_line_color);
|
||||
text_edit->add_theme_color_override("mark_color", mark_color);
|
||||
text_edit->add_theme_color_override("bookmark_color", bookmark_color);
|
||||
text_edit->add_theme_color_override("code_folding_color", code_folding_color);
|
||||
text_edit->add_theme_color_override("search_result_color", search_result_color);
|
||||
text_edit->add_theme_color_override("search_result_border_color", search_result_border_color);
|
||||
|
||||
text_edit->add_theme_constant_override("line_spacing", EDITOR_DEF("text_editor/theme/line_spacing", 6));
|
||||
code_editor->get_text_editor()->get_syntax_highlighter()->update_cache();
|
||||
}
|
||||
|
||||
String TextEditor::get_name() {
|
||||
|
||||
Reference in New Issue
Block a user