### 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

--
container.resize(container.size() - 1);
}
static bool find_next(const String &line, String pattern, int from, bool match_case, bool whole_words, int &out_begin, int &out_end) {
	int end = from;
	while (true) {
		int begin = match_case ? line.find(pattern, end) : line.findn(pattern, end);
		if (begin == -1) {
			return false;
		}
		end = begin + pattern.length();
		out_begin = begin;
		out_end = end;
		if (whole_words) {
			if (begin > 0 && (is_ascii_identifier_char(line[begin - 1]))) {
				continue;
			}
			if (end < line.size() && (is_ascii_identifier_char(line[end]))) {
				continue;
			}
		}
		return true;
	}
}
void FindInFiles::set_search_text(String p_pattern) {