Fill layers contain an adjustable solid or gradient colour. They can be used for photo editing and corrective or creative purposes.
From the Layer menu, select New Fill Layer.
A new layer is added above the current layer (or at the top of the Layers panel if no layer is selected) with a solid colour applied.
Drag the cursor across the content.
Hold down the to constrain the angle of the gradient path to 45°.