This quote suggests that the capacity for happiness and contentment is indicative of the mental strength and well-being of an individual. It implies that a healthy and resilient mind finds joy and satisfaction in its own state and experiences.
That which is striking and beautiful is not always good, but that which is good is always beautiful.