wait, nevermind, sorry, it dawned on me it's just texture margin got reset.
The problem is that with the release of Godot versions, some parameters were renamed and now the engine does not parce them, I opened the ".tres" file using an editor and replaced "margin" with "textute_margin". However, there are still other parameters that need to be corrected, because in the end the theme still looks ugly.