You are quite right that writing depressive stuff tends to affect mood; even while working on a never-released concept of a 'big comedy, big tragedy' story, I felt the pull of the tragedy part to be far too strong and stopped writing it because it made me sad.
If you ask me, the 'tragedy' part...