UI problem with custom themes on Win 8.1

Hello.
What can I do with this? It is so ugly.
изображение

I used an extension called “Hide Caption Titlebar Plus” which is now unavailable. I want these buttons to look harmonious with a custom theme.