gmarull / qtmodern

PyQt/PySide Widgets Modern User Interface
MIT License
751 stars 113 forks source link

If the platform is darwin put the title bar buttons on the left #37

Closed Jerakin closed 4 years ago

Jerakin commented 4 years ago

Fixes https://github.com/gmarull/qtmodern/issues/36

gmarull commented 4 years ago

Thanks @Jerakin . Would you like to become a maintainer of this repository :-) ?

Jerakin commented 4 years ago

That would be awesome, could you also take the time and add me as a maintainer at https://pypi.org/project/qtmodern/ (username: jerakin) ? So I can do pypi releases too :)

gmarull commented 4 years ago

@Jerakin Done.

You may also be interested in a better approach regarding custom titlebars. I have gathered all necessary bits here https://gist.github.com/gmarull/75a7f67bd1944bc59141f31a46c80591 (haven't tested the gist, but should work). The advantage is that all native functionality is preserved (e.g. AeroSnap on Windows). The end result is something like this:

Windows: image

macOS: image

Jerakin commented 4 years ago

Very interesting, as this is not using Qt.FramelessWindowHint I think it will also make the minimize button work.

razaqq commented 4 years ago

I know this has nothing to do with the topic, but can I find the code for that vertical sidebar anywhere? Looks really good @gmarull