Even just setting aside time to express gratitude can really turn things around. I have my kids do this, and that alone can turn them from being hugely negative to happily going to bed more-or-less on time.
It obviously can’t cure all forms of depression, but recognizing things that you’re grateful for can really improve your general outlook. It’s the indoor version of touching grass.