The core assumption (or insight?) of Cognitive Therapy (and Cognitive Behavioral Therapy) is that our thoughts shape the way we feel. In this model, repetitive negative thoughts are actually a main cause of depression, not a symptom.
If you're interested in this approach, I'd recommend the works of David Burns, for example his book "Feeling Great" or the Feeling Good Podcast.