Help › Tools
Eyedropper, key I
Click to take the colour under the pointer as the foreground colour. Alt+click sets the background colour. Keep the button down and drag to keep sampling.