Well i found the solution.
I added(those in bold text)
Exec=env GTK_THEME=Adwaita codeblocks %F
to /usr/share/applications/codeblocks.desktop
That will be overwritten by an update.
You probably want to copy to ~/.local/share/applications and edit that.
