The photoreceptor is responsible for adjusting from bright light to darkness or vice versa. The cones and rods are types of photoreceptors where rods are more sensitive to light while the cones are responsible for color detection.
Moreover, rhodopsin is the photopigment used by the rods for night vision and cones function only in bright light. Furthermore, the intense light causes these pigments to decompose reducing sensitivity to dim light while darkness causes the molecules to regenerate for “dark adaptation” in which the eye adjusts to see in the low lighting conditions.