Fill layers contain an adjustable solid or gradient color. 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 color applied.
Drag the cursor across the content.
Hold down the to constrain the angle of the gradient path to 45°.