Recreating the Github for Mac UI with Qt
-
Is it possible to mimic the appearance of the main window in the Mac App Store application using QML/Qt Quick? Or else, how could this be done?
Basically it consists of enlarging the title bar, and centering the traffic lights (capture: http://cl.ly/330416362y0y2r3N2a1t or even: http://cl.ly/0B3m282X3r1X1p2G312F ).Would definitely appreciate the help!
-
Thanks for the reply ixSci!
So using BorderImage(s) will remove/overwrite the default title bar (the one available by default - http://cl.ly/0y10021m1D442O0I1x0h), or do I need to add/remove something elsewhere?
Thanks again!
-
No, QtQuick is all about creation you should search for "qt frameless window mac os x" or something similar in google since it has nothing to do with QtQuick.
So you can create window of that appearance in QtQuick and show it in QDeclarativeView without standard frame which is drawn by Mac OS X -
Here's a problem I have with this solution:
How can I know which theme the Mac user is using (Graphite/Blue), as the "traffic lights" will have to reflect the user's choice if I want my app to look properly native? (also, the traffic lights do not look the same in Snow Leopard and Lion, which is yet another issue)Would there be a way I could get a tall title bar (similar to what's in http://flavio.tordini.org/minitube - also build with Qt), without having to try to replicate the behavior of the Mac native traffic lights myself?
-
Not sure what you're trying to do. Why do you want to "mimic" while you can have the real thing using QWidgets? Just create a QMainWindow and call @setUnifiedToolBarOnMac(true);@
Also add a QToolBar to the window and you'll get the "tall titlebar" you're looking for. Then you can use QML in the centralWidget of QMainWindow if you want to.