How does Electron make the menu and logo/ zoom in and out the same?

I want to achieve the effect of github Desktop, as shown in the following figure:

logo:

is there any other way to implement it besides customization? no relevant configuration has been found. Thank you!

May.08,2021

this requires a custom title. That's what I did.
clipboard.png

Let me give you a reference to the implementation of three small buttons:

  

I remember you clicking on the header status bar actually made it bigger and smaller. If the configuration is used in this place, it should be the same as the ordinary application. If you customize it, you will have more space

.
Menu