### Godot version

4.x

### System information

Windows 10

### Issue description

The `Search Result` panel is not correctly updated when changing the theme.

https://user-images.githubusercontent.com/66004280/208964493-d0423b78-3418-44c9-95ed-822fd34c4720.mp4



### Steps to reproduce

1. Search something
2. Change the theme

### Minimal reproduction project

--
public:
	String get_line(Ref<FileAccess> f) {
		_line_buffer.clear();
		char32_t c = f->get_8();
		while (!f->eof_reached()) {
			if (c == '\n') {
				_line_buffer.push_back(c);
				_line_buffer.push_back(0);
				return String::utf8(_line_buffer.ptr());
			} else if (c == '\0') {
				_line_buffer.push_back(c);
				return String::utf8(_line_buffer.ptr());
			} else if (c != '\r') {
				_line_buffer.push_back(c);
			}
			c = f->get_8();
		}
		_line_buffer.push_back(0);
		return String::utf8(_line_buffer.ptr());
	}
private:
	Vector<char> _line_buffer;
};
void FindInFilesPanel::apply_replaces_in_file(String fpath, const Vector<Result> &locations, String new_text) {