I have been reading your posts and am with you buddy.
Relationships take time to be built and some times take time to rebuild. So you are going to have to be patient.
The fact that she is still with you says she is on your side and she wants the best for your relationship.
Things will grow back into place as you change from unwanted behaviour.
Focus on your honesty with yourself and her, then the integrity of your actions.
Trust is not a gift. It can be destroyed and it can be re-earned. You can do that!
Live truthfully and honestly before her and you will see things improve.
Be open with her about your thoughts and struggles. You may find a real supporter standing with you.
Crash, the biggest thing for me was becoming honest with myself. I stopped lying to myself.
I stopped making unjustified excuses that my behaviour was ok.
I decided I had to stand up and be a man even when no one is watching
and the only person it makes a difference to, was me. I like to call that integrity
and I am still working on it. Not quite perfect yet
I do wish you all the best with your challenges and success for the future.