Click a square on the right to select it (blue border). Its color can be set using the color picker (top right) or by clicking in the image (top left).
If you click either AutoFill or OK, any unspecified palette entries will be chosen automatically.