I did a fresh install of 5.1 and installed elementary tweaks to get my go-to windows controls layout. All the system apps and apps like Chrome and Firefox have the changed controls, but apps installed from flatpak like Spotify and other gtk? apps have the default eOS format. How can I change these to the windows controls layout?
looking at your screenshots you want the buttons to be on the right side with winboze order. In order to achieve this, execute this into the terminal application:
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
If you want the buttons to be on the left site use
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:'