just go Layer | New Adjustment layer | Gradient map <thats for the whole canvas Image | Adjustments | Gradient map <thats for the layer you have selected