Positive reinforcement?

I’m interested in how I can work to ‘improve’ myself without telling myself off. I notice that I beat myself up if I don’t stick to plan/eating protocol/commitment.
I have made a conscious decision to not do this, but how do I motivate myself when I don’t follow through? Is it just choosing to focus on the positives and not what I haven’t done?