### Tested versions

v4.2.stable.official [46dc27791]

### System information

Windows 11- Godot v4.2.stable.official [46dc27791] - Vulkan (Forward+)

### Issue description

![image](https://github.com/godotengine/godot/assets/46812028/f57e3f30-b3c4-4a83-8793-64a58bd18220)


### Steps to reproduce

Create a new project and select a color in modulate

### Minimal reproduction project (MRP)

N/A
PackedColorArray arr;
	arr.resize(recent_presets.size());
	for (int i = 0; i < recent_presets.size(); i++) {
		arr.set(i, recent_presets[i]);
	}
	return arr;
}
void ColorPicker::set_color_mode(ColorModeType p_mode) {
	ERR_FAIL_INDEX(p_mode, MODE_MAX);
	if (current_mode == p_mode) {
		return;
	}
	if (slider_theme_modified) {
		_reset_sliders_theme();
	}
	mode_popup->set_item_checked(current_mode, false);
	mode_popup->set_item_checked(p_mode, true);
	if (p_mode < MODE_BUTTON_COUNT) {
		mode_btns[p_mode]->set_pressed(true);
	} else if (current_mode < MODE_BUTTON_COUNT) {
		mode_btns[current_mode]->set_pressed(false);
	}
	current_mode = p_mode;
	if (!is_inside_tree()) {
		return;
	}
	_update_controls();
	_update_color();
}
ColorPicker::ColorModeType ColorPicker::get_color_mode() const {