kateliev / TypeRig

Proxy API and Font Development Toolkit for FontLab
https://kateliev.github.io/TypeRig/
BSD 3-Clause "New" or "Revised" License
48 stars 3 forks source link

Making TypeRig panels fit vertically into a MacBook Pro screen #18

Closed twardoch closed 5 years ago

twardoch commented 5 years ago

This addresses https://github.com/kateliev/TypeRig/issues/17

The result is a very compact appearance on the Mac — but everything fits:

scr- 2019-08-26 at 04 10 47

It’s implemented via a new typerig.QtGui module which acts as an adapter of the standard QtGui classes. Currently, it’s not very sophisticated — could be improved. But it’s better than the ugly hack with loading Fusion styling.

kateliev commented 5 years ago

Thank you @twardoch !

twardoch commented 5 years ago

Basically, it's another proxy :) I actually like the proxy system. I'm more and more inclined to think that this is the proper way of writing code: write your complex classes in a private module, and then write a proxy module that REALLY is the API. For something like Qt, it wouldn't be a full proxy (and it's used here differently), but for something one writes himself, sure.

twardoch commented 5 years ago

BTW, there is this https://pypi.org/project/Qt.py/ which hides the differences between PyQt and PySide. It doesn't have PythonQt but it would be worthwhile adding it (doesn't look complicated, it's just work), and then you'd be free to write for any of these environments.

kateliev commented 5 years ago

So... if you like proxies - why not keep the original FL6 API :) no rewriting needed ? :)