A beautiful object has no intrinsic quality that is good for the mind, nor an ugly object any intrinsic power to harm it. Beautiful and ugly are just projections of the mind. The ability to cause happiness or suffering is not a property of the outer object itself. For example, the sight of a particular individual can cause happiness to one person and suffering to another. It is the mind that attributes such qualities to the perceived object.
Mindfulness should guide all your actions and your spiritual endeavors. Whatever you do, always apply three essential points: undertake the action with the intention of doing so for the good of all beings; execute it with perfect concentration, free of attachment to concepts of subject, object, and action; and, finally, dedicate the merit you have created to the enlightenment of all beings.
Don't follow after the object of hatred, look at the angry mind. Anger liberated by itself as it arises is mirrorlike wisdom.
Don't chase after the object of pride, look at the grasping mind. Self-importance liberated as it arises is the wisdom of equanimity.
Don't hanker after the object of desire, look at the craving mind.
